% mapping operations, example 1, % stacked combining % % Copy to Matlab command window and run % make sure prdatasets is in the path prdatasets % load Iris dataset a = iris % compute first principal component w1 = pca(a,1) % compute first LDA (Fisher mapping) component w2 = fisherm(a,1) % combine to 2D space w = [w1 w2] % map original dataset and show scatter b = a*w scatterd(b)