Hi Pablo Fonseca,
I am trying your K-means image segmentation code,available at (http://www.mathworks.com/matlabcentral/fileexchange/30740-k-means-image-segmentation) but during execution it prompts following error;
??? In an assignment A(:) = B, the number of elements in A and B
must be the same.
Error in ==> kmeansclustering at 13
May I ask can help me, how I can rectify this problem.