How can I find the number of letters in a string? Just letters (A-Z, a-z)?
Show older comments
How can I find the number of letters in a string? Just letters (A-Z, a-z)?
Accepted Answer
More Answers (2)
Jan
on 24 May 2015
Or:
sum(isstrprop(string, 'alpha'))
Categories
Find more on Characters and Strings 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!