Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

stringlib::lower

Convert to lower-case

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

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?