Error using internal.stats.parseArgs (line 42)

8 vues (au cours des 30 derniers jours)
guojing jin
guojing jin le 11 Juil 2019
Commenté : Walter Roberson le 1 Déc 2020
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');

Réponses (1)

Walter Roberson
Walter Roberson le 11 Juil 2019
pca(observations, 'economy', true)
Note that economy is true by default
  2 commentaires
Deniz Weißbrodt
Deniz Weißbrodt le 1 Déc 2020
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 le 1 Déc 2020
pca(rand(20,5),'economy', true)
works for me.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by