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.

example

Examples

collapse all

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

collapse all

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:

For string arrays, the lower function supports Unicode®.

Extended Capabilities

expand all

Thelower function fully supports tall arrays. For more information, see Tall Arrays.

Usage notes and limitations:

Version History

Introduced before R2006a