redgreencmap

Display a red and green colormap

Syntax

redgreencmap(Length)

Arguments

Length

Length of the colormap. Enter either 256 or 64. The default value is the length of the colormap of the current figure.

Description

redgreencmap(Length) returns an M-by-3 matrix containing a red and green colormap. Low values are bright green, values in the center of the map are black, and high values are red.

redgreencmap, by itself, is the same length as the current colormap.

Examples

Reset the color map of the current figure.

pd =gprread('mouse_a1pd.gpr')
maimage(pd,'F635 Median')
colormap(redgreencmap)

See Also

Bioinformatics Toolbox function clustergram

MATLAB functions colormap, colormapeditor, jet


© 1994-2005 The MathWorks, Inc.