How to write _ in a plot legend?
Afficher commentaires plus anciens
xxx = {'a_b'}
plot(1:5)
legend(xxx)
>> result is

i want to 'a_b' in legend .......
How to write ??
Réponse acceptée
Plus de réponses (2)
weikang zhao
le 4 Fév 2021
- change the Interpreter like other answers
- Tex has its own escape for _ :
legend('a\_b');
Catégories
En savoir plus sur Legend dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
