Hierarchical clustering

Hierarchical clustering and dendrogram (WPGMA and UPGMA methods)


Updated 2 May 2016

View License

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:

Cite As

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

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Description correction.