문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top