Effacer les filtres
Effacer les filtres

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

9 vues (au cours des 30 derniers jours)
Ali
Ali 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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Dialog Boxes dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by