Size of coeff in PCA example is not correct

5 ビュー (過去 30 日間)
Nasri Balit
Nasri Balit 2020 年 9 月 30 日
回答済み: Raunak Gupta 2020 年 10 月 3 日
Following the demo code for pca exactly gives a different coeff result.
Expected result:
My result:
I have no idea what could be causing this... Any ideas?

回答 (1 件)

Raunak Gupta
Raunak Gupta 2020 年 10 月 3 日
Hi,
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.

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by