dendrogram関数を用いて系統樹を表示する際に、各データ点のラベルに’_’を含む名称を付ける方法
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!