Question

I am drawing dendrogram using matlab function like the following

[h1,t1,perm1] = dendrogram(z,3);

According to MATLAB document, the returned h1 is a vector of handles to the lines in the dendrogram. I do not know that does that mean. For my case, the return h1 is

h1 =

174.0048

175.0043

How to use this vector?

Was it helpful?

Solution

In Matlab, a handle to a graphical object allow you to modify its properties. They are listed in the documentation for each kind of object. You can use the command set or the property editor by double-clicking on the line (choose the arrow in the figure toolbar first).

You have this example in the dendrogram page to set the width of all lines (but you can also select only a few ones):

set(H,'LineWidth',2)

See Line Properties and more generally Object Properties.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top