How to write _ in a plot legend?
Mostra commenti meno recenti
xxx = {'a_b'}
plot(1:5)
legend(xxx)
>> result is

i want to 'a_b' in legend .......
How to write ??
Risposta accettata
Più risposte (2)
weikang zhao
il 4 Feb 2021
- change the Interpreter like other answers
- Tex has its own escape for _ :
legend('a\_b');
Categorie
Scopri di più su Legend in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
