FreeMat
|
Section: String Functions
The upper
function converts a string to upper case with the syntax
y = upper(x)
where x
is a string, in which case all of the lower case characters in x
(defined as the range 'a'-'z'
) are converted to upper case. Alternately, you can call upper
with a cell array of strings
y = upper(c)
in which case each string in the cell array is converted to upper case.
A simple example:
--> upper('this Is Strange CAPitalizaTion') ans = THIS IS STRANGE CAPITALIZATION
and a more complex example with a cell array of strings
--> upper({'This','Is','Strange','CAPitalizaTion'}) ans = [THIS] [IS] [STRANGE] [CAPITALIZATION]