Documentation Center

  • Trials
  • Product Updates

upper

Convert string to uppercase

Syntax

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

Description

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

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

Examples

upper('attention!') is ATTENTION!.

More About

expand all

Tips

Character sets supported:

  • PC: Windows® Latin-1

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

See Also

Was this topic helpful?