how to get the length of text in matlab?
18 views (last 30 days)
Show older comments
i want to get the function for finding the length of text in matlab?
2 Comments
Jan
on 4 Apr 2014
It could mean the number of text lines also. And if only ASCII is meant, notice, that a line break might be char(10) of char([13,10]), so "length" is not well defined yet.
Answers (1)
Chandrasekhar
on 4 Apr 2014
str = 'sandy sorathiya '
len = length(str);%length of the string
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!