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

조회 수: 2 (최근 30일)
Pierre
Pierre 2011년 4월 20일
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 !

답변 (1개)

Chirag Gupta
Chirag Gupta 2011년 4월 20일
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)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by