Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
please suggest me the MATLAB expression to count the no of literals in a string
조회 수: 1 (최근 30일)
이전 댓글 표시
e.g. I am having a string t6Pt4P2t3
then no of chars in it are 10. So I want a code which take utt6Pt4P2t3 as input and output me the 10(no of chrs) as output.
댓글 수: 0
답변 (1개)
Mahdiyar
2015년 4월 6일
Hi Jain
The number of character in tis string (utt6Pt4P2t3) is 11 :) .You can use the following command.
String = 'utt6Pt4P2t3'
No_Char = length(String)
Regards,
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!