Princomp has been removed. Use PCA instead.

13 views (last 30 days)
Mohamad Afiq
Mohamad Afiq on 2 Mar 2019
Answered: Houhao Liang on 21 Nov 2019
Hey guys. Can anyone help me convert the 'princomp' command to 'pca' ? Below are the coding.
pca_coeff{i} = princomp(feat');
pca_coeff{i} = pca_coeff{i}(:, 1:floor(size(feat,1)/2))';
In the MATLAB, it says that 'princomp has been removed. Use pca instead.'
Thank you. I'm very appreciate if there any answer from anyone.

Answers (1)

Houhao Liang
Houhao Liang on 21 Nov 2019
Have you figured it out?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!