Colour the tick lables in a dendrogram to match the cluster colours
问题 How can I individually colour the labels of a dendrogram so that they match the colours of the clusters in MATLAB? Here is an example desired output generated using the code in my answer below (note the lables are just the 50 charater series 'A':'r' ): If there is a more straightforward way to do this, please do post an answer as I was unable to find the solution to this by googling. If not, the code is below for posterity. 回答1: I could not find a definitive answer to this but I managed to