title: How to PCA reduction in Matlab
body: <p>I am new to Matlab and have some problems using built in packages for PCA reduction. I have 37 objects each represented by 161 dimensional vector, that means i have 161 x 37 matrix called P. I need to reduce vector dimension to 3. so that each object will be represented by 3 dimensional vector. I have tried something with princomp(P) but i don't know which output to take.</p>
  
  <p>[COEFF,SCORE] = princomp(P); 
  newData=SCORE(:,1:3);</p>
  
  <p>I think newData are not the right vectors ?</p>