next line, new line! in the text( ) code
309 ビュー (過去 30 日間)
古いコメントを表示
I want to write text using text code
text(5,5,['MATLAB','\n']);
but '\n' doesn't work.
I want a textbox consisting of three text lines
0 件のコメント
採用された回答
Image Analyst
2012 年 11 月 9 日
編集済み: Image Analyst
2012 年 11 月 9 日
Try sprintf:
message = sprintf('Line #1\nThe second line.\nAnd finally a third line.');
plot(1:20);
text(5, 5, message, 'FontSize', 20, 'Color', [.6 .2 .6]);
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Text Data Preparation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!