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 ??

 采纳的回答

Set the interpreter to 'none'
xxx = {'a_b'};
plot(1:5)
legend(xxx,'interpreter','none')

1 个评论

very very very very very very very very very Thank you !!!!
happy new year ~!~!

请先登录,再进行评论。

更多回答(2 个)

类别

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by