pca function returns the wrong output in R2022a
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Paul
el 6 de Jun. de 2023
Comentada: Paul
el 7 de Jun. de 2023
Dear all,
I tried to use pca on 10x16 matrix. The function returned a 16x1 vector for coeff. According to the documentation it should be 16x16 matrix in my case. I figured, there must be something wrong with my input matrix, so I tried the example from the pca documentation page and got this:
load hald
>> coeff=pca(ingredients)
coeff =
517.7969
67.4964
12.4054
0.2372
Can there be something wrong with the pca function? Maybe its version issue. I am using R2022a.
Does anyone experience something similiar?
0 comentarios
Respuesta aceptada
Steven Lord
el 6 de Jun. de 2023
Let's check that you're using the pca function included in Statistics and Machine Learning Toolbox. What does this command show?
which -all pca
6 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Dimensionality Reduction and Feature Extraction en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!