Method Reference: string.lower

string: newstr = lower (str)

Convert contents of string array to lower case.

newstr = lower (str) converts all upper case characters in every element of the string array str to lower case. newstr is a string array of the same size as str.

Source Code: string

Example: 1

lower converts each string to lower case.

 s = string ({'Hello'; 'WORLD'})
s =
  2x1 string array

    "Hello"    
    "WORLD"
 lower (s)
ans =
  2x1 string array

    "hello"    
    "world"