title: Euclidean Distance
body: <p>I have two points </p>
  
  <pre><code> x1 = (a1,b1,c1,d1,e1);    //5 dimensional point
   x2 = (a2,b2,c2,d2,e2);    //5 dimensional point
  </code></pre>
  
  <p>So is this right way to calculate the euclidean dist?</p>
  
  <pre><code>  d = sqrt(sqr(a1-a2)+sqr(b1-b2)+sqr(c1-c2)+sqr(d1-d2)+sqr(e1-e2))
  </code></pre>
  
  <p>Now I was wondering if the <code>pdist(X)</code> would give me the same result? </p>
  
  <p>Here <code>X = (x1,x2)</code> i.e <code>X</code> is a 5x2 matrix.</p>
  
  <p>Also I would like the result in square matrix form.</p>