Fix string for graph title

This function fixes a string before it is used as a title for a graph.
1,5K téléchargements
Mise à jour 4 oct. 2004

Afficher la licence

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')

Citation pour cette source

Alecsander Eitan (2026). Fix string for graph title (https://fr.mathworks.com/matlabcentral/fileexchange/5969-fix-string-for-graph-title), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Title dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0