You cannot use whatever the word you want. There are specified words which are methods of getting the distance.
X=[1,1;2,2;3,3]
D = pdist(X,'euclidean')
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!