필터 지우기
필터 지우기

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

조회 수: 7 (최근 30일)
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.

카테고리

Help CenterFile Exchange에서 Dimensionality 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