GRAY Gray Colormap
Section: Handle-Based Graphics
Usage
Returns a gray colormap. The syntax for its use isy = gray
Example
Here is an example of an image displayed with thegray
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