Add title to current axes
27 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How one can add title to the plot without using "TITLE" Command???? You cannot even use the figure GUI ?
Can anyone give me an answer?
3 commentaires
Guillaume
le 25 Fév 2015
What a stupid interview question! Why not use the tool that's specifically designed for the job?
Réponse acceptée
Jos (10584)
le 25 Fév 2015
set(get(gca, 'title'), 'string', 'My First Title')
2 commentaires
dpb
le 25 Fév 2015
Still, if you can use set, why can't you use title? It also can accept a handle and is less complex syntax.
title(gca,'Your title text')
Plus de réponses (1)
dpb
le 25 Fév 2015
Just reread the question -- guess I didn't follow before. Yes, "TITLE" is included as an option under the "Insert" menu item on figures.
0 commentaires
Voir également
Catégories
En savoir plus sur Title dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!