getting error 'Too many output arguments.'while running [coeff,score,latent,tsquared,explained] = pca(X2);
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 2 Août 2018
Modifié(e) : Walter Roberson
le 2 Août 2018
Which MATLAB release are you using? What is class(X2) ? What is size(X2) ? What shows up for
which pca(X2)
Réponse acceptée
Brent F
le 24 Juin 2021
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 commentaires
Plus de réponses (1)
Berkay TOPALOGLU
le 25 Août 2020
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 commentaires
Voir également
Catégories
En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!