How can I find the number of letters in a string? Just letters (A-Z, a-z)?
显示 更早的评论
How can I find the number of letters in a string? Just letters (A-Z, a-z)?
采纳的回答
更多回答(2 个)
Jan
2015-5-24
Or:
sum(isstrprop(string, 'alpha'))
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!