How do I get a new line with the TEXT function using TeX formatting in MATLAB 7.2 (R2006a)?
21 ビュー (過去 30 日間)
古いコメントを表示
I want to use TeX formatting in the TEXT function to write text on a second line in my graph.
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
To get a new line with TeX formatting, use “\newline” in the TEXT function.
Following is an example of how one can write two strings - “first line” and “second line”, on two different lines in the middle of an axes:
axes
text(0.5,0.5, '{first line \newlinesecond line}')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Labels and Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!