dendrogram​関数を用いて系統樹を​表示する際に、各デー​タ点のラベルに’_’​を含む名称を付ける方​法

10 views (last 30 days)
NS
NS on 7 Jun 2019
Answered: Yoshio on 7 Jun 2019
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);

Accepted Answer

Yoshio
Yoshio on 7 Jun 2019
set(gca,'TickLabelInterpreter','none');
を追加してみてください。

More Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!