This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Convert characters to uppercase


t = upper('str')
B = upper(A)


t = upper('str') converts any lowercase characters in the character array str to the corresponding uppercase characters and leaves all other characters unchanged.

B = upper(A) when A is a cell array of character vectors, returns a cell array the same size as A containing the result of applying upper to each character vector within A.


upper('attention!') is ATTENTION!.

More About

collapse all


Character sets supported:

  • PC: Windows® Latin-1

  • Other: ISO® Latin-1 (ISO 8859-1)

See Also

Introduced before R2006a

Was this topic helpful?