How can we add different lines in msgbox with different lengths?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Image Analyst
il 13 Dic 2014
Use sprintf and \n. For example:
message = sprintf('This is line 1.\nThe date is %s', date)
msgbox(message);
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Dialog Boxes in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!