??? Undefined function or method 'princomp' for input arguments of type 'double'.

5 vues (au cours des 30 derniers jours)
Pierre
Pierre le 20 Avr 2011
Hello,
I would like to implement a PCA on a matrix (m*p) with p<m of double.
Statistics toolbox is installed and licensed. When I use the princomp function, Matlab shows me this :
??? Undefined function or method 'princomp' for input arguments of type 'double'.
How can I compute properly this function ?
Thanks for any help !

Réponses (1)

Chirag Gupta
Chirag Gupta le 20 Avr 2011
Try: which princomp
This should print something to the effect of C:\Program Files\MATLAB\R2010b\toolbox\stats\stats\princomp.m if Stats has been installed properly.
If you do not get this, try rehash toolboxcache
before using the command. (This should rehash the toolbox functions and now which princomp should show you the correct file)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox 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!

Translated by