message length
이전 댓글 표시
HOw to display the length of message given which is given as input in the message box?
댓글 수: 1
Jan
2012년 4월 30일
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?
채택된 답변
추가 답변 (1개)
Vino
2012년 5월 4일
0 개 추천
댓글 수: 1
Titus Edelhofer
2012년 5월 4일
yes, you can: use e.g. num2str to convert to a string, e.g.
msgbox(['The answer is ' num2str(42) '.'])
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!