Error using internal.stats.parseArgs (line 42)

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');

Antworten (1)

Walter Roberson
Walter Roberson am 11 Jul. 2019

0 Stimmen

pca(observations, 'economy', true)
Note that economy is true by default

2 Kommentare

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
pca(rand(20,5),'economy', true)
works for me.

Melden Sie sich an, um zu kommentieren.

Kategorien

Produkte

Tags

Gefragt:

am 11 Jul. 2019

Kommentiert:

am 1 Dez. 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by