How to get a list of column names within the same cluster in MATLAB
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Daniel
am 9 Mai 2017
Kommentiert: Norman Dovichi
am 30 Apr. 2021
I have a dendrogram defined by:
dm=DataMatrix(mydata,rowscell,columnnames);
cg = clustergram(dm,'Standardize','none');
I got group of clusters and I want to know which column names are within each cluster. I can look at the map, but if my column names are on the 1000s, it is not convenient to copy them manually from the graphic dendrogram.
Is there any function I can get the list of column names within each (or specific) cluster?
0 Kommentare
Akzeptierte Antwort
Wilson A N
am 12 Mai 2017
Bearbeitet: Wilson A N
am 12 Mai 2017
I think you can use the 'clusterGroup' command to get the corresponding cluster for a specific group.
For example,
cgo4group = clusterGroup(cg,4,'row')
will give the 4th cluster group. Now to get the row names you have to just execute the following command:
>> cgo4group.RowLabels
More information can be found in the following link:
1 Kommentar
Norman Dovichi
am 30 Apr. 2021
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!