How to get a list of column names within the same cluster in MATLAB

1 回表示 (過去 30 日間)
Daniel
Daniel 2017 年 5 月 9 日
コメント済み: Norman Dovichi 2021 年 4 月 30 日
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?

採用された回答

Wilson A N
Wilson A N 2017 年 5 月 12 日
編集済み: Wilson A N 2017 年 5 月 12 日
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:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by