% Basic operations, example 4, % PCA, 10 to 2 mapping, apply and show % % 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) % Apply on original data B = A*W % show size of results disp(['Dataset size: ' int2str(size(B))]) % show scatterplot scatterd(B)