关于树状图函数的返回向量
我正在使用 matlab 函数绘制树状图,如下所示
[h1,t1,perm1] = dendrogram(z,3);
根据 MATLAB 文档,返回的 h1 是树状图中线的句柄向量。我不知道这是什么意思。对于我的情况,返回 h1 是
h1=
174.0048
175.0043
如何使用这个向量?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Matlab 中,图形对象的句柄允许您修改其属性。它们在每种对象的文档中列出。您可以通过双击该行来使用命令
set
或属性编辑器(首先选择图窗工具栏中的箭头)。您可以在
dendrogram
页面中使用此示例来设置所有线条的宽度(但您也可以仅选择几条线条):请参阅线路属性 以及更一般的对象属性。
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):See Line Properties and more generally Object Properties.