FreeMat: GRAY Gray Colormap

FreeMat

- Main Page
- Related Pages

GRAY Gray Colormap

Section: Handle-Based Graphics

# 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