getting error 'Too many output arguments.'while running [coeff,score,latent,tsquared,explained] = pca(X2);
조회 수: 5 (최근 30일)
이전 댓글 표시
getting error 'Too many output arguments.'while running [coeff,score,latent,tsquared,explained] = pca(X2); WHY so ? whats the solution. I want to calculate cumulative variance with respect to PCs.
댓글 수: 2
Walter Roberson
2018년 8월 2일
편집: Walter Roberson
2018년 8월 2일
Which MATLAB release are you using? What is class(X2) ? What is size(X2) ? What shows up for
which pca(X2)
채택된 답변
Brent F
2021년 6월 24일
Make sure you don't have a pca.m file in your path, such as prtools, that is overriding the built-in pca function.
댓글 수: 0
추가 답변 (1개)
Berkay TOPALOGLU
2020년 8월 25일
i am getting the same error. How did you solve it?
I tried matlab's own instance and still get the same error.
---
load hald
[coeff,score,latent,tsquared] = pca(ingredients,'NumComponents',2);
------
Error using pca
Too many input arguments
----
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!