How to write _ in a plot legend?
古いコメントを表示
xxx = {'a_b'}
plot(1:5)
legend(xxx)
>> result is

i want to 'a_b' in legend .......
How to write ??
採用された回答
その他の回答 (2 件)
weikang zhao
2021 年 2 月 4 日
- change the Interpreter like other answers
- Tex has its own escape for _ :
legend('a\_b');
カテゴリ
ヘルプ センター および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
