MATLAB: Capitalize only the first letter of a character

capitalcharacterletterupper

How to Capitalize only the first letter of a character ? upper function capitalize all the letters. I want only to make this change ONLY for the first letter.
Thank you in advance

Best Answer

Likely a better way.
a='my name';
a(1)=upper(a(1));