Regarding the returned vector of dendrogram function

조회 수: 1 (최근 30일)
liangjian
liangjian 2011년 12월 6일
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?

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 12월 6일
h1, h2 are handles which means you can use them to automagically or manually change properties of the plot. For example:
z = magic(5);
[h1,t1,perm1] = dendrogram(ceil(rand(10,3)*10));
%it's blue; Yuck!
%Make it Red, Yay!
set(h1,'color','red')
I used set to take the handle and change one of the properites associated with it.
doc set
doc get
etc.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by