Fix string for graph title

版本 1.0.0.0 (1.5 KB) 作者: Alecsander Eitan
This function fixes a string before it is used as a title for a graph.
1.5K 次下载
更新时间 2004/10/4

查看许可证

This function fixes a string before it is used as a title for a graph.

It is known that an underscore '_' is used in the title string to set the next character to lowercase. But, in many cases we don't need this feature, we just want to print the underscore. The correct way is to insert the '\_' pair instead of '_'. This function is doing exactly this. It can handle any number of underscores in the string.

EDITOR'S NOTE:
You can also accomplish this by setting a text object's interpreter. For example:
>> title('My_Plot','Interpreter','none')

引用格式

Alecsander Eitan (2024). Fix string for graph title (https://www.mathworks.com/matlabcentral/fileexchange/5969-fix-string-for-graph-title), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Title 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0