Princomp has been removed. Use PCA instead.
Mostrar comentarios más antiguos
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))';
Thank you. I'm very appreciate if there any answer from anyone.
1 comentario
Image Analyst
el 2 de Mzo. de 2019
Did you try
pca_coeff{i} = pca(feat');
Respuestas (2)
Houhao Liang
el 21 de Nov. de 2019
0 votos
Have you figured it out?
Sourabh
el 18 de Feb. de 2025
Hey @Mohamad Afiq
The “pca” function is a replacement for the “princomp” function that works in recent releases.
Replace the first line from
pca_coeff{i} = princomp(feat');
to
pca_coeff{i} = pca(feat');
I hope this helps!
Categorías
Más información sobre Dimensionality Reduction and Feature Extraction en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!