message length
Mostra commenti meno recenti
HOw to display the length of message given which is given as input in the message box?
1 Commento
Jan
il 30 Apr 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?
Risposta accettata
Più risposte (1)
Vino
il 4 Mag 2012
0 voti
1 Commento
Titus Edelhofer
il 4 Mag 2012
yes, you can: use e.g. num2str to convert to a string, e.g.
msgbox(['The answer is ' num2str(42) '.'])
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!