Single plot title line with multiple text interpreters?
4 次查看(过去 30 天)
显示 更早的评论
I am having trouble with the default latex interpreter changing an underscore(_) to a subscript in a location where I do not want this to happen in a plot title.
filenameHBW = 20220303_F1 ;
title( [ 'HSRL2 Ocean b_b_p Retrieval From' , filenameHBW ] )
In the above example, it is desired to interpret the underscores in b_b_p as subscripts, but it is not desired to interpret the underscore in the variable filenameHBW as a subscript.
What is the simplest way to create title such that the interpreter ignores the underscore in the filenameHBW variable?
0 个评论
回答(1 个)
Fangjun Jiang
2023-7-14
title( [ 'HSRL2 Ocean b_b_p Retrieval From' , strrep(filenameHBW,'_','\_') ] )
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!