Error using internal.stats.parseArgs (line 42)

8 ビュー (過去 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 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