I should do multidimensional scaling with "mdscale" function in matlab on the famous Fisher Iris dataset.
I don't get why sometimes it works and sometimes not. This is what I do:
clear all;
load('fisheriris'); %it return a dataset in the variable "meas"
distM = pdist(meas); %creating the distance matrix of the dataset
newPoints = mdscale(distM, 2, 'criterion', 'stress')
The error is:
Points in the configuration have co-located. Try a different starting point, or use a different criterion.
If I use another criterion like "sstress" or "metricsstress" it seems to work.
How can it be explained?