??? Undefined function or method 'princomp' for input arguments of type 'double'.
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
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)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File 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!