??? Undefined function or method 'princomp' for input arguments of type 'double'.
5 views (last 30 days)
Show older comments
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 !
0 Comments
Answers (1)
Chirag Gupta
on 20 Apr 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)
0 Comments
See Also
Categories
Find more on Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!