Plots a dendrogram as generated by HCLUST. If the optional K is given the dendrogram is compressed first to K clusters. Along the horizontal axis the numbers stored in DENDROGRAM(1,:) are written as text. The dendrogram itself is defined by DENDROGRAM(2,:) in which each entry stands for the level on which the previous and next group of objects are clustered.
This routine also accepts dendrograms computed by Matlab's LINKAGE