Documentation

This is machine translation

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

RGB::ColorNames

Find predefined colors by name

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

RGB::ColorNames()
RGB::ColorNames(str)

Description

RGB::ColorNames(str) goes through the list of predefined color names in the RGB name space and returns those whose names contain the string or identifier str given as input.

RGB::ColorNames() returns all color names available in the RGB name space.

Examples

Example 1

The following call returns all predefined color names containing "Olive":

RGB::ColorNames("Olive")

The RGB values of these colors are:

RGB::Olive, RGB::OliveDrab, RGB::OliveGreen, 
RGB::OliveGreenDark

Parameters

str

A part of a color name: a string or an identifier

Return Values

RGB::ColorNames returns a list of predefined color names.

See Also

MuPAD Functions

Was this topic helpful?