Hierarchical clustering

Hierarchical clustering and dendrogram (WPGMA and UPGMA methods)

You are now following this Submission

This function defines the hierarchical clustering of any matrix and displays the corresponding dendrogram.
The hierarchical clustering is performed in accordance with the following options:
- Method: WPGMA or UPGMA
- Metric: any anonymous function defined by user to measure vectors dissimilarity
- Clustering parameter: number of clusters or dissimilarity limit
The function returns the linkage tree, the clusters, the list of ranked items and optionally the dendrogram calculated on the basis of dissimilarity matrices.
Video demonstrations:
https://www.youtube.com/watch?v=cPzd-574D1I&list=PLJXyTqQS4FL3QoWdlGj0WtT7nSYKWqBxv&index=3&ab_channel=Pseudonymeoriginal
https://www.youtube.com/watch?v=EgZ2XF9rNXM&index=2&list=PLJXyTqQS4FL3QoWdlGj0WtT7nSYKWqBxv&ab_channel=Pseudonymeoriginal
https://www.youtube.com/watch?v=KvCKnkzNmXI&index=1&list=PLJXyTqQS4FL3QoWdlGj0WtT7nSYKWqBxv&ab_channel=Pseudonymeoriginal

Cite As

Eric Ogier (2026). Hierarchical clustering (https://www.mathworks.com/matlabcentral/fileexchange/56844-hierarchical-clustering), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Description correction.