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.

RGB::plotColorPalette

Display predefined colors

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::plotColorPalette(str)

Description

RGB::plotColorPalette(str) displays the colors in the RGB name space whose names contain str.

RGB::plotColorPalette uses RGB::ColorNames and plots samples of the colors found by this routine, in tabular fashion.

Environment Interactions

RGB::plotColorPalette plots a list of color samples with names.

Examples

Example 1

The following call plots all predefined colors containing "Olive":

RGB::plotColorPalette("Olive")

When the list of colors found gets larger, they are distributed over more lines:

RGB::plotColorPalette("Blue")

Parameters

subname

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

Return Values

RGB::plotColorPalette returns the empty object, null().

See Also

MuPAD Functions

Was this topic helpful?