ingredients = 7 26 6 60 1 29 15 52 11 56 8 20 11 31 8 47 7 52 6 33 11 55 9 22 3 71 17 6 1 31 22 44 2 54 18 22 21 47 4 26 1 40 23 34 11 66 9 12 10 68 8 12 >> [a,b] = pca(zscore(ingredients),4) a = 2.2357 1.5761 0.1866 0.0016 b = -0.4760 0.5090 0.6755 0.2411 -0.5639 -0.4139 -0.3144 0.6418 0.3941 -0.6050 0.6377 0.2685 0.5479 0.4512 -0.1954 0.6767 >> [pc,score,latent, tsquare] = princomp(zscore(ingredients)) pc = 0.4760 -0.5090 0.6755 0.2411 0.5639 0.4139 -0.3144 0.6418 -0.3941 0.6050 0.6377 0.2685 -0.5479 -0.4512 -0.1954 0.6767 latent = 2.2357 1.5761 0.1866 0.0016 >> mds = MatlabModelDataSanitizer(ingredients,[], 4, [-2],true) Calls written & deleted to: /tmp/lastoutput-mds-7 mds = ca.ubc.cs.beta.smac.matlab.MatlabModelDataSanitizer@498fe417 >> mds.getPCACoefficients() ans = 2.2357 1.5761 0.1866 0.0016 >> mds.getPCAVectors() ans = 0.6767 -0.1954 0.4512 0.5479 0.2685 0.6377 -0.6050 0.3941 0.6418 -0.3144 -0.4139 -0.5639 0.2411 0.6755 0.5090 -0.4760