How can we add different lines in msgbox with different lengths?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ali
le 13 Déc 2014
Réponse apportée : Image Analyst
le 13 Déc 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 commentaires
Réponse acceptée
Image Analyst
le 13 Déc 2014
Use sprintf and \n. For example:
message = sprintf('This is line 1.\nThe date is %s', date)
msgbox(message);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!