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

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?

 Respuesta aceptada

Use sprintf and \n. For example:
message = sprintf('This is line 1.\nThe date is %s', date)
msgbox(message);

Más respuestas (0)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Ali
el 13 de Dic. de 2014

Respondida:

el 13 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by