Capitalize 1st word of an character array
5 次查看(过去 30 天)
显示 更早的评论
Using regexprep how do I convert this '99this' to this '99This'?
0 个评论
采纳的回答
更多回答(1 个)
Sean de Wolski
2022-6-16
编辑:Sean de Wolski
2022-6-16
s = "99this"
firstletter = letterBoundary("start")+lettersPattern(1)
replace(s, firstletter, upper(extract(s, firstletter)))
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!