title: How to fix the Principle Component Analysis error in Matlab
body: <p>I happened to  a Matlab Problem, the error looks like this:</p>
  
  <pre><code>Error using pca
  Too many input arguments.
  
  Error in mdscale (line 413)
  [~,score] = pca(Y,'Economy',false);
  
  Error in demo_libsvm_test1 (line 140)
  newCoor = mdscale(distanceMatrix,2);
  </code></pre>
  
  <p>When I debug my code step by step, the error comes from here:</p>
  
  <pre><code>distanceMatrix = pdist(heart_scale_inst,'euclidean'); (line 139)
  newCoor = mdscale(distanceMatrix,2);  (line 140)
  </code></pre>
  
  <p>Everything above the two lines are all right. I do not know how to fix the problem. I use Matlab 2014a. Can anyone give me a help?</p>