I would like to have an option where I can collapse a Dendrogram below a specified score. The available method in MATLAB (which limits the numbers of branches) is not the same as it collapse the branches without printing the names of the targets.
For example, when I execute the following code,
X = rand(30,2);Y = pdist(X,'cityblock');Z = linkage(Y,'average');[H1,T1] = dendrogram(Z, 0, 'colorthreshold','default');
the dendrogram is very cluttered. I would like to eliminate this clutter by collapsing smaller clusters. However, when I use the following syntax to call Dendrogram, I lose cluster membership information,
[H1,T1] = dendrogram(Z, 4, 'colorthreshold','default');
Best Answer