Hello
I have clustered my data X with hierarchical clustering in the following way:
Y = pdist(X);Z = linkage(Y);T = cluster(Z,'maxclust',2);
How can I determine to which cluster a new data point (not in X) should be assigned to? For k-means one can just assign the data point to the cluster with the nearest centroid but for hierarchical clustering I don't see how to do it.
Best Answer