title: Why a MATLAB function pdist() is not working?
body: <p>I am facing a strange situation in MATLAB. MATLAB function <code>pdist</code> is not working. It is showing an error <code>Undefined function 'pdist' for input arguments of type 'double'.</code> </p>
  
  <p>This function is defined in <code>Statistics Toolbox.</code> I thought followings: (i) May be my inputs to this function are not correct or (ii) I do not have access to this function (i.e. may be I do not have <code>Statistics Toolbox</code> in MATLAB. </p>
  
  <p>To check the first point, I went to the help window of MATLAB and then, searched for this function there. At the end of the page, there are some examples given. I copied one simplest and tried it in the MATLAB command window. Unfortunately, it is showing the same error mentioned above. Strange, because at least I expect this example to run normally. </p>
  
  <p>To check the second point, I went to the <code>start</code> button in MATLAB. There I can see I have a <code>Statistics Toolbox.</code> I tried another way that is, typing <code>ver('stats')</code> in the command window. It also shows me about the details of the <code>Statistics Toolbox.</code> And, the last way, I went to my <code>C:</code> derive where I have installed MATLAB. There also in the toolboxes, I can see a file which has a function <code>pdist.</code></p>
  
  <p>Does anybody has any idea, whats wrong going on here? or what could be next possibility that I can check for its validity? Thanks. </p>