Single plot title line with multiple text interpreters?
Afficher commentaires plus anciens
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?
Réponses (1)
Fangjun Jiang
le 14 Juil 2023
2 votes
title( [ 'HSRL2 Ocean b_b_p Retrieval From' , strrep(filenameHBW,'_','\_') ] )
1 commentaire
Anthony Cook
le 14 Juil 2023
Catégories
En savoir plus sur Grid Lines, Tick Values, and Labels 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!