Upper first letter of a text input
Show older comments
Hello, I have a text input and I would like to save that text input with the first letter in uppercase and cut more than 30 letters, if necessary. What should I do? I have this:

Accepted Answer
More Answers (1)
Stephen23
on 6 Dec 2017
Simpler:
[upper(newuser.name(1)),newuser.name(2:min(30,end))]
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!