% Basic operations, example 5, Classifier % Will load prdatasets if not in the path % % Copy to Matlab command window and run % check for Iris dataset in prdataset prdatasets('iris'); % load iris dataset, 3 class problem A = iris % Compute classifier and normalize by classc, W = fisherc(A)*classc % This is a 4 (features) to 3 (classes) mapping! % Apply to original data B = A*W % show 5 objects +B(1:5,:)