Error using internal.stats.parseArgs (line 42)

조회 수: 6 (최근 30일)
guojing jin
guojing jin 2019년 7월 11일
댓글: Walter Roberson 2020년 12월 1일
Hi,
I am using pca like this, and my matlab version is matlab2018a
[princComp, score, eigenVals] = pca(observations,'econ');
But met an error, how can I solve it?
error using internal.stats.parseArgs (line 42)
Wrong number of arguments.
error pca (line 178)
= internal.stats.parseArgs(paramNames, defaults, varargin{:});
error Create_pdm_wild (line 24)
[princComp, score, eigenVals] = pca(observations,'econ');

답변 (1개)

Walter Roberson
Walter Roberson 2019년 7월 11일
pca(observations, 'economy', true)
Note that economy is true by default
  댓글 수: 2
Deniz Weißbrodt
Deniz Weißbrodt 2020년 12월 1일
Hello Walter,
I have the same problem, but expanding the code with economy doesn't solve the problem. Or am I doing something wrong?
My Version is 2020a on a linux.
Thanks,
Deniz
Walter Roberson
Walter Roberson 2020년 12월 1일
pca(rand(20,5),'economy', true)
works for me.

댓글을 달려면 로그인하십시오.

카테고리

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