How can we add different lines in msgbox with different lengths?
4 ビュー (過去 30 日間)
古いコメントを表示
How can we add different lines in msgbox with different lengths? We cant use () these brackets neither brackets used in cell array so what is the option?
0 件のコメント
採用された回答
Image Analyst
2014 年 12 月 13 日
Use sprintf and \n. For example:
message = sprintf('This is line 1.\nThe date is %s', date)
msgbox(message);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!