关于树状图函数的返回向量

发布于 2024-12-19 19:36:08 字数 254 浏览 5 评论 0原文

我正在使用 matlab 函数绘制树状图,如下所示

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

根据 MA​​TLAB 文档,返回的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

江湖彼岸 2024-12-26 19:36:08

在 Matlab 中,图形对象的句柄允许您修改其属性。它们在每种对象的文档中列出。您可以通过双击该行来使用命令 set 或属性编辑器(首先选择图窗工具栏中的箭头)。

您可以在 dendrogram 页面中使用此示例来设置所有线条的宽度(但您也可以仅选择几条线条):

set(H,'LineWidth',2)

请参阅线路属性 以及更一般的对象属性

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文