Dendrogram; How to understand linkage(x) output?
Afficher commentaires plus anciens
I have three questions regarding Dendrogram and linkge function. I have data of some x models e.g.,
x1=0.1576
x2=0.9706
x3=0.9572
x4=0.4854
x5=0.8003
x6=0.1419
x7=0.4218
x8=0.9157
x9=0.7922
x10=0.9595
1) I run the following code to draw the Dendrogram. What the coulmns one and two correspond in output of the linkage(X)?
X = [0.1576; 0.9706; 0.9572; 0.4854; 0.8003; 0.1419; 0.4218; 0.9157; 0.7922; 0.9595];
tree = linkage(X,'average');
figure()
dendrogram(tree)
The tree variable is
tree =
3.0000 10.0000 0.0023
5.0000 9.0000 0.0081
2.0000 11.0000 0.0122
1.0000 6.0000 0.0157
8.0000 13.0000 0.0467
4.0000 7.0000 0.0636
12.0000 15.0000 0.1545
14.0000 16.0000 0.3039
17.0000 18.0000 0.5976
I struggling to understand what the numbers(14,12,16) in coulmns one and two correspond.
2) How the numbers in Dendrogram are assinged on the horizontal axis? I thought these would be the columns one and two however they are not.

3)I would like to change the horzontal axis numbers to the names of the models, to which these numbers correspond so that the horizontal numbers show model names of similar clustors instead of the numbers. the names could be x1, x2,x3 i.e.,
Kindly, help me to sort out this.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Hierarchical Clustering dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!