Add title to current axes
25 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Guillaume
2015 年 2 月 25 日
What a stupid interview question! Why not use the tool that's specifically designed for the job?
採用された回答
Jos (10584)
2015 年 2 月 25 日
set(get(gca, 'title'), 'string', 'My First Title')
2 件のコメント
dpb
2015 年 2 月 25 日
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')
その他の回答 (1 件)
dpb
2015 年 2 月 25 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Title についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!