How to write _ in a plot title?
271 次查看(过去 30 天)
显示 更早的评论
The problem is that _ means subscript!
0 个评论
采纳的回答
更多回答(1 个)
Stephen23
2015-5-26
编辑:Stephen23
2015-5-26
Actually there are two main ways of dealing with this. Each of them can be useful, depending on the circumstances:
- Use the string '\_' instead of '_'.
- Change the text property Interpreter to none:
The first one is easy to do if you are writing the strings by hand, The second one can be useful if the strings are generated automatically or are read from some data source.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!