Get Cluster "Distances"

Parse a SAHN tree to obtain the distances associated with nodes representing clusters

You are now following this Submission

Input a SAHN tree (e.g. the result of a call to linkage) and the number, n, of clusters into which the SAHN tree is to be partitioned (e.g. by the function cluster). Output is a list of distances where the i'th distance corresponds to cluster i as produced by a call to cluster to produce n clusters. Each "distance" is the number associated with the node at the "root" of each cluster, i.e. the distance between the final two sub-clusters merged to produce the i'th cluster.

Cite As

David Snyder (2026). Get Cluster "Distances" (https://uk.mathworks.com/matlabcentral/fileexchange/29406-get-cluster-distances), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0