Contents Previous Next Subchapters

Converting Upper Case to Lower Case
Syntax up2low(x)
See Also lower , low2up , ntoa , atod , atoi , strreplace , char

Description
Returns a copy of x in which the uppercase letters are converted to lowercase, where x is a character matrix.

Examples
     x = "aBcDeFg"
     up2low(x)
returns
     abcdefg
The up2low and low2up functions can also enable more general string comparisons than provided by the built in operators. If you enter,
     x = "aBcde"
     y = "ab12"
     up2low(x.col(1,2)) == up2low(y.col(1,2)) 
O-Matrix responds
     T

Mlmode
In Mlmode , this function is called lower instead of up2low. If in Mlmode you enter
     x = 'aBcDeFg';
     lower(x)
O-Matrix will respond
     abcdefg