Main Content

Hierarchical Clustering

Produce nested sets of clusters

Hierarchical clustering groups data into a multilevel cluster tree or dendrogram. If your data is hierarchical, this technique can help you choose the level of clustering that is most appropriate for your application.

Live Editor Tasks

Cluster DataCluster data using k-means or hierarchical clustering in the Live Editor (Since R2021b)


clusterConstruct agglomerative clusters from linkages
clusterdataConstruct agglomerative clusters from data
cophenetCophenetic correlation coefficient
inconsistentInconsistency coefficient
linkageAgglomerative hierarchical cluster tree
pdistPairwise distance between pairs of observations
squareformFormat distance matrix


Related Information