String Function MATLAB help
이전 댓글 표시
What is a MATLAB function you could use to find the number of characters in a string by using a single function call without displaying the string?
답변 (1개)
Walter Roberson
2019년 3월 23일
0 개 추천
댓글 수: 2
Laura Blydenburgh
2019년 3월 23일
Walter Roberson
2019년 3월 23일
That has nothing to do with string length. You simply need to add semi-colon to the end of the lines.
str = "Hello World"; %semi-colon tells MATLAB not to display result
L = strlength(str) %no semi-colon so that MATLAB will display result
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!