gray

Gray colormap array.

Syntax

  • c = gray

  • c = gray(m)

Input argument

  • m - a scalar integer value: Number of colors (256 as default value).

Output argument

  • c - Gray colormap array.

Description

gray returns the colormap with gray colors.

Example

f = figure();
surf(peaks);
colormap('gray');

See also

colormap.

History

Author

Allan CORNET

Last updated