message length
Afficher commentaires plus anciens
HOw to display the length of message given which is given as input in the message box?
1 commentaire
Jan
le 30 Avr 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?
Réponse acceptée
Plus de réponses (1)
Vino
le 4 Mai 2012
0 votes
1 commentaire
Titus Edelhofer
le 4 Mai 2012
yes, you can: use e.g. num2str to convert to a string, e.g.
msgbox(['The answer is ' num2str(42) '.'])
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!