The following Matlab project contains the source code and Matlab examples used for k medoids. Efficient implementation of K-medoids clustering methods. http://en.wikipedia.org/wiki/K-medoids It is usually more robust than kmeans algorithm. try load data; label=kmedoids(x,3); spread(x,label); Input data are assumed COLUMN vectors! You can only visualize 2d data!
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.