Documentation Center

  • Trial Software
  • Product Updates

stringlib::lower

Convert to lower-case

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

stringlib::lower(string1)

Description

stringlib::lower(string1) converts each upper-case letter in the string string1 to lower-case. All other characters remains unchanged.

If the string contains no upper-case letters, the given string is returned unchanged.

Examples

Example 1

Convert a string to lower-case:

stringlib::lower("MuPAD"),
stringlib::lower("Mupad"),
stringlib::lower("MUPAD"),
stringlib::lower("mupad")

Example 2

Compare strings not case sensitive:

str_eq:= (str1, str2) ->
           bool(stringlib::lower(str1) = stringlib::lower(str2)):
str_eq("MuPAD", "mupad"), str_eq("Mupad", "MUPAD")

Parameters

string1

Any string

Return Values

String

See Also

MuPAD Functions

Was this topic helpful?