Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

rgbplot - Plot colormap

Example of rgbplot function output

Syntax

rgbplot(cmap)

Description

rgbplot(cmap) plots the three columns of cmap, where cmap is an m-by-3 colormap matrix. rgbplot draws the first column in red, the second in green, and the third in blue.

Examples

Plot the RGB values of the copper colormap.

rgbplot(copper)

See Also

colormap

Color Operations for related functions

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS