MATLAB: Multiple species using “classify”

classifylinear discriminant analysisstatistics

Hello,
I have been working with the classify command and have been playing around with the example for Fisher's Iris ("load fisheriris"). In the example, only two species are used (versicolor and virginica); however, there are three in the complete data set (includes setosa). Using these data, I have tried using "classify" for all three species at the same time and it treats it like two. Does "classify" support more than two data sets? If so, could you please suggest some modifying code?
Many thanks! Jennifer

Best Answer

What example do you mean? On this page:
the example seems to be using all three species.