MATLAB: Unable to run Discriminant Analysis

discriminant analysisfisheriris

I am unable to run this command in matlab .
load fisheriris;
linclass=ClassificationDiscriminant.fit(meas,species);
Reason:
After loading fisheriris, matlab gives error on ClassificationDiscriminant.fit because The file " ClassificationDiscriminant.fit" is not in Matlab directory.
Link is given below : "http://www.mathworks.com/help/toolbox/stats/bq_u8tb.html"

Best Answer

ClassificationDiscriminant class is new in R2011b Statistics Toolbox. Do you have R2011b?
Related Question