How can we add different lines in msgbox with different lengths?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali
am 13 Dez. 2014
Beantwortet: Image Analyst
am 13 Dez. 2014
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 13 Dez. 2014
Use sprintf and \n. For example:
message = sprintf('This is line 1.\nThe date is %s', date)
msgbox(message);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!