gray

Purpose

Linear grayscale colormap.

Synopsis

cmap = gray(m)

Description

gray(m) returns an m-by-3 matrix containing a grayscale colormap. The default value for m is the length of the current colormap.

Examples

To reset the colormap of the current figure:

colormap(gray)

See Also

bone, colormap, cool, copper, flag, hot, hsv, jet, pink, prism, white

(c) Copyright 1994 by The MathWorks, Inc.