what is the difference between pca(x) and princomp(x) matlab commands?

35 ビュー (過去 30 日間)
Mohamed Moawed
Mohamed Moawed 2013 年 6 月 3 日
コメント済み: Imad Ahmed Tungekar 2017 年 11 月 29 日
could any one help me the difference between pca(x) and princomp(x) matlab commands?

採用された回答

Tom Lane
Tom Lane 2013 年 6 月 3 日
編集済み: Tom Lane 2013 年 6 月 6 日
If you type "type princomp" you will see that it is just a call to pca with certain default inputs defined. The pca function was introduced just in an attempt to have a more familiar name.
  2 件のコメント
Mohamed Moawed
Mohamed Moawed 2013 年 6 月 4 日
thanks for your reply. i want to ask is the input of the princomp is input matrix or covariance matrix? ans what about pca function is input matrix or covariance matrix?
Tom Lane
Tom Lane 2013 年 6 月 5 日
編集済み: Tom Lane 2013 年 6 月 6 日
Use pcacov if you have the covariance matrix. The others expect the data matrix.

サインインしてコメントする。

その他の回答 (1 件)

Andrea Le
Andrea Le 2013 年 11 月 26 日
Besides from what Tom said, I want to add other difference between these two commands princomp lets you decide to do an economic version of the outputs. pca automatically truncates your matrix into an economic version.
  1 件のコメント
Imad Ahmed Tungekar
Imad Ahmed Tungekar 2017 年 11 月 29 日
could you please elaborate what is economic version of the output?

サインインしてコメントする。

カテゴリ

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