Matlab绘制聚类分析树状图节点太少

在Matlab中,当原始数据的观测数超过30个时,使用dendrogram绘制的树状图可能会变得拥挤,可能导致某些底层节点被忽略。这意味着树形图的叶节点可能对应多个观测。叶节点是指树形图中最底层的节点,在观测数不多时,每个叶节点直接代表一个观测,但当观测过多,为了清晰展示,部分观测会被合并为一个叶节点。参数P可以用来控制显示的叶节点数量,若P为0则显示所有节点,否则只显示P个叶节点。
摘要由CSDN通过智能技术生成

参考文献:https://www.ilovematlab.cn/thread-250089-1-1.html

打开Matlab输入doc dendrogram,可以发现如下描述:

dendrogram(tree) generates a dendrogram plot of the hierarchical binary cluster tree. A dendrogram consists of many U-shaped lines that connect data points in a hierarchical tree. The height of each U represents the distance between the two data points being connected.

If there are 30 or fewer data points in the original data set, then each leaf in the dendrogram corresponds to one data point.
If there are more than 30 data points, then dendrogram collapses lower branches so that there are 30 leaf nodes. As a result, some leaves in the plot correspond to more than one data point.
  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值