% Basic operations, example 3, % PCA, 10 to 2 mapping % % Copy to Matlab command window and run % generate two class problem in 10D A = gentrunk([50 50],10) % compute 10 to 2 PCA mapping W = pca(A,2) % show mapping size disp(['Mapping size: ' int2str(size(W))])