# rgbplot

Plot colormap.

## Syntax

* rgbplot(cmap)

## Input argument

* cmap - Colormap: three-column matrix of RGB triplets .

## Description

rgbplot(cmap) plots the R (red), G (green), and B (blue) intensities of the specified cmap colormap.

## Example

```matlab
f  = figure();
colormap = [0.2 0.1 0.5;
    0.1 0.5 0.8;
    0.2 0.7 0.6;
    0.8 0.7 0.3;
    0.9 1 0];
rgbplot(colormap);
```

![](https://160667757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPvJ6mJve3gz5MU4d1%2Fuploads%2Fgit-blob-5e6d959c81072fb3d88a04e2e95915550f81e2e5%2Frgbplot_1A9AFB52.svg?alt=media)

## See also

[plot](plot), [colormap](colormap).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
