>> Once you find the cluster centroids you can associate new data example to >> the cluster centers by measuring again the distance (pdist again with one >> entry for each centroid plus un additional entry for each new example). >> Then the analog cluster is the cluster which centroid has the minimal >> distance. ... > I tried to do what you suggested but without success. Can you post a code > example please?
Manuel, if you have centroids and new data, you can locate the nearest centroid to each new point using the pdist2 function like so: