Plot Title Problem

3 次查看(过去 30 天)
Baba
Baba 2011-11-9
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?

采纳的回答

Walter Roberson
Walter Roberson 2011-11-9
title(filename, 'Interpreter','none')

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Title 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by