Plot Title Problem

3 vues (au cours des 30 derniers jours)
Baba
Baba le 9 Nov 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?

Réponse acceptée

Walter Roberson
Walter Roberson le 9 Nov 2011
title(filename, 'Interpreter','none')

Plus de réponses (1)

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

Community Treasure Hunt

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

Start Hunting!

Translated by