title: Mahalanobis distance between two vectors in MATLAB
body: <p>I have the following two vectors, and trying to find the <code>Mahalanobis</code> distance between them. The two vectors are as follows:</p>
  
  <pre><code>A=[2,4,5,7];
  B=[6,3,8,1];
  </code></pre>
  
  <p>For calculating the <code>Mahalanobis distance</code>, I did the following:</p>
  
  <p><code>&gt; mahal(A(:),B(:))</code></p>
  
  <p>For that, I got the following results:</p>
  
  <pre><code>0.6466
  0.0259
  0.0259
  0.6466
  </code></pre>
  
  <p>But, how can I get <code>one</code> value, as when you calculate <code>Euclidean</code> distance for instance?</p>
  
  <p>Thanks.</p>