toupper
Returns a string or cell array where each lowercase character of the input string, matrix or cell array is replaced by the corresponding uppercase character. Non-alphabetic characters in the input are not modified.
Syntax
R = toupper(s)
Inputs
- x
- Type: string | mat | cell
Outputs
- R
- Type: string | cell
Examples
String input:
R = toupper('Test 123')
R = TEST 123
Cell array
input:
R = toupper({'Help Info:', 'TEST uppercase'})
R =
{
[1,1] HELP INFO:
[1,2] TEST UPPERCASE
}