


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.


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));