lower - Convert strings to lowercase - MATLAB (original) (raw)
Main Content
Convert strings to lowercase
Syntax
Description
newStr = lower([str](#bu55fth-txt))
converts all uppercase characters in str
to the corresponding lowercase characters and leaves all other characters unchanged.
Examples
You can create string arrays using double quotes.
Convert a string array to contain lowercase characters.
str = ["The SOONER,";"the BETTER."]
str = 2×1 string "The SOONER," "the BETTER."
newStr = 2×1 string "the sooner," "the better."
Input Arguments
Input array, specified as a string array, character array, or cell array of character vectors.
Tips
For character arrays, the lower
function supports only the character sets:
- PC: Windows® Latin-1
- Other: ISO® Latin-1 (ISO 8859-1)
For string arrays, the lower
function supports Unicode®.
Extended Capabilities
Thelower
function fully supports tall arrays. For more information, see Tall Arrays.
Usage notes and limitations:
- Input array must be a string scalar or a character array.
- Input values must be in the range 0–127.
Version History
Introduced before R2006a