dendrogram関数を用いて系統樹を表示する際に、各データ点のラベルに’_’を含む名称を付ける方法
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
dendrogram関数を用いて系統樹を表示する際に、各データ点のラベルに’_’を含む名称を付けたいです。
そのまま'_'を付けると、'_'は表示されずに'_'の次の文字が下付き文字に変換されてしまいます。
ラベルは自動生成されるようにしてるので、バックスラッシュを'_'の手前につける方法以外でお願いします。
コード例
data = [1 2 3 4 5; 6 7 8 9 10; 1 3 4 5 7]; %入力データ
%各データ点のラベル
Label{1,1} ='aaa_1';
Label{2,1} ='aaa_2';
Label{3,1} ='aaa_3';
tree = linkage(data);
figure();
dendrogram(tree,'Labels', Label);
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Pattern Recognition and Classification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!