Size of coeff in PCA example is not correct
2 views (last 30 days)
Raunak Gupta on 3 Oct 2020
The vector you are seeing in your result is the component wise variance of each principal component. I tried the same example and coeff variable is a 4x4 matrix for me.
Can you try with full syntax which is mentioned below:
[coeff,score,latent] = pca(ingredients)
This should give correct result.