Home > chronux_1_15 > spikesort > utility > graphicstyles > xray.m

xray

PURPOSE ^

XRAY Inverted gray-scale color map.

SYNOPSIS ^

function map = xray(m)

DESCRIPTION ^

XRAY              Inverted gray-scale color map.
   XRAY(M) returns an M-by-3 matrix containing an inverted gray-scale
   colormap (from white to black, rather than black-to-white).
   XRAY, by itself, is the same length as the current colormap.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function map = xray(m)
0002 %XRAY              Inverted gray-scale color map.
0003 %   XRAY(M) returns an M-by-3 matrix containing an inverted gray-scale
0004 %   colormap (from white to black, rather than black-to-white).
0005 %   XRAY, by itself, is the same length as the current colormap.
0006 
0007 if (nargin < 1), m = size(colormap,1);  end;
0008 map = flipud(gray(m));

Generated on Tue 15-Aug-2006 22:51:57 by m2html © 2003