message length
Mostrar comentarios más antiguos
HOw to display the length of message given which is given as input in the message box?
1 comentario
Jan
el 30 de Abr. de 2012
What is "the message box"? What means "input" here? Which "length" do you want: The number of characters or the width when displayed on the screen considering the font and line wrapping?
Respuesta aceptada
Más respuestas (1)
Vino
el 4 de Mayo de 2012
0 votos
1 comentario
Titus Edelhofer
el 4 de Mayo de 2012
yes, you can: use e.g. num2str to convert to a string, e.g.
msgbox(['The answer is ' num2str(42) '.'])
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!