message length
Show older comments
HOw to display the length of message given which is given as input in the message box?
1 Comment
Jan
on 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?
Accepted Answer
More Answers (1)
Vino
on 4 May 2012
0 votes
1 Comment
Titus Edelhofer
on 4 May 2012
yes, you can: use e.g. num2str to convert to a string, e.g.
msgbox(['The answer is ' num2str(42) '.'])
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!