Legend with a variable in it
古いコメントを表示
I am trying to add legend to a plot. The legend is a varibale. Some elemets in the vatiable has underscore (Sample_A1_A2). I used the code below for this purpose.
Name = Table.Properties.VariableNames{i};
legend(Name,'Location','Northwest');
(It is in a for loop. )

The resutled plot legend didn't include the underscore in the name, instead the letters right after the underscore are subscripted.
Any suggestion how I can get pass this?
Thanks.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!