Documentation

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.

upper

Convert characters to uppercase

Syntax

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

Description

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.

Examples

upper('attention!') is ATTENTION!.

More About

collapse all

Tips

Character sets supported:

  • PC: Windows® Latin-1

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

See Also

Introduced before R2006a

Was this topic helpful?