Find cluster numbers of a colored dendrogram

I understand how to generate a colored dendrogram whereby a cutoff criterion is chosen and generated using 'ColorThreshold'.
However, how do you fisure out which color belongs to whioch cluster?
for clarity i use;
%% calculate cluster membership using the desired number of clusters
clusters = cluster(tree, 'maxclust', numClust);
%% find colour threshold to cut dendrogram
colour = tree(end-numClust+2,3)-eps;
%% find optmal leaf order
leafOrder = optimalleaforder(tree,D);
%% plot dendrogram
[H, T, outperm] = dendrogram(tree,'ColorThreshold',colour, 'reorder', leafOrder);
Bu i cannot find a way to know which color corresponds to which cluster.

Answers (0)

Products

Release

R2019a

Asked:

on 5 Apr 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!