upper
Convert text to uppercase.
📝Syntax
res = upper(str)
📥Input Arguments
Parameter Description
str character array, string scalar, string array, or cell array of character vectors.
📤Output Arguments
Parameter Description
res text converted to uppercase with the input shape preserved.
📄Description

upper converts character arrays, strings, and string arrays to uppercase.

The shape of the input text is preserved in the result.

💡Examples
Convert a string to uppercase.
txt = upper("NelSon")
🔗See Also
lowertoupper
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub