Home > freetb4matlab > image > colormap.m

colormap

PURPOSE ^

% Set the current colormap.

SYNOPSIS ^

function cmap = colormap (map)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} colormap (@var{map})
% @deftypefnx {Function File} {} colormap ('default')
% Set the current colormap.
%
% @code{colormap (@var{map})} sets the current colormap to @var{map}.  The
% color map should be an @var{n} row by 3 column matrix.  The columns
% contain red, green, and blue intensities respectively.  All entries
% should be between 0 and 1 inclusive.  The new colormap is returned.
%
% @code{colormap ('default')} restores the default colormap (the
% @code{jet} map with 64 entries).  The default colormap is returned.
%
% With no arguments, @code{colormap} returns the current color map.
% @seealso{jet}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003