I am facing a strange situation in MATLAB. MATLAB function pdist
is not working. It is showing an error Undefined function 'pdist' for input arguments of type 'double'.
This function is defined in Statistics Toolbox.
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 Statistics Toolbox
in MATLAB.
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.
To check the second point, I went to the start
button in MATLAB. There I can see I have a Statistics Toolbox.
I tried another way that is, typing ver('stats')
in the command window. It also shows me about the details of the Statistics Toolbox.
And, the last way, I went to my C:
derive where I have installed MATLAB. There also in the toolboxes, I can see a file which has a function pdist.
Does anybody has any idea, whats wrong going on here? or what could be next possibility that I can check for its validity? Thanks.