How can I color my dendrogram plot such that the colors correspond to clusters generated by the "cluster" function in the Statistics and Machine Learning Toolbox?
Show older comments
I generate a dendrogram plot by running the following code at the MATLAB prompt:
load fisheriris.mat
numClusters = 3;
dist = pdist(meas, "euclidean");
link = linkage(dist, "average");
clust = cluster(link, "maxclust", numClusters);
dendrogram(link)
I would like different sections of the dendrogram plot colored such that they correspond to the clusters returned by the "cluster" function. How can I accomplish this?
Accepted Answer
More Answers (0)
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!