Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

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

Asked by Tim Bennett on 13 Jun 2013

Hello,

I would like to implement a PCA on a matrix but when I use the princomp function ([COEFF,SCORE] = princomp(X)), Matlab shows me this:

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

Even typing in "princomp" results in:

File 'princomp' not found.

Statistics toolbox is installed and licensed (i.e Symbolic Math Toolbox Version 5.2 R2009a) and I've tried using "which princomp" and "rehash toolboxcache" prior to this command but with no success.

Do I need anything specifically in the Current Directory for the princomp function to be activated?

Any guidance would be appreciated.

0 Comments

Tim Bennett

Tags

Products

No products are associated with this question.

1 Answer

Answer by the cyclist on 13 Jun 2013

The toolbox you just cited is the Symbolic Math Toolbox. That is not the same as the Statistics Toolbox.

Are you sure you have the stats toolbox?

0 Comments

the cyclist

Contact us