How to write _ in a plot legend?
Ältere Kommentare anzeigen
xxx = {'a_b'}
plot(1:5)
legend(xxx)
>> result is

i want to 'a_b' in legend .......
How to write ??
Akzeptierte Antwort
Weitere Antworten (2)
weikang zhao
am 4 Feb. 2021
- change the Interpreter like other answers
- Tex has its own escape for _ :
legend('a\_b');
Kategorien
Mehr zu Legend finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
