I am using Matlab to classify data using LDA.
mdl = fitcdiscr(dbimgs1,indx,'DiscrimType','linear');
C=predict(mdl,testimgs1);
I get the following error:
Predictor x741 has zero variance. Either exclude this predictor or set 'discrimType' to 'pseudoLinear' or 'diagLinear'.
I do not wish to use 'pseudoLinear' or 'diagLinear' as it degrades the performance. How can I exclude the zero predictor?