フィルターのクリア

How can we add different lines in msgbox with different lengths?

9 ビュー (過去 30 日間)
Ali
Ali 2014 年 12 月 13 日
回答済み: Image Analyst 2014 年 12 月 13 日
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?

採用された回答

Image Analyst
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 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by