next up previous contents
Next: Plot Functions Up: Image Display Functions Previous: COPPER Copper Colormap   Contents

Subsections

GRAY Gray Colormap

Usage

Returns a gray colormap. The syntax for its use is

   y = gray

Example

Here is an example of an image displayed with the gray colormap

--> x = linspace(-1,1,512)'*ones(1,512);
--> y = x';
--> Z = exp(-(x.^2+y.^2)/0.3);
--> image(Z);
--> colormap(gray);

which results in the following image

8861


Samit K. Basu 2005-03-16