Plot Title Problem

3 visualizaciones (últimos 30 días)
Baba
Baba el 9 de Nov. de 2011
My code
title(filename);
where filename is a variable such as Plot_Dot
I would like the title to be exactly "Plot_Dot"
however, because of the underscore, D is being displayed as a
subscript. How do I avoid that?

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Nov. de 2011
title(filename, 'Interpreter','none')

Más respuestas (1)

Drew Weymouth
Drew Weymouth el 9 de Nov. de 2011
Escape it with the backslash. title('Plot\_Dot')

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by