Home > eeg > egis > meg_code > bigrayscale.m

bigrayscale

PURPOSE ^

Produce antisymmetric grayscale cmap for displaying signed data in

SYNOPSIS ^

function cmap = bigrayscale(N)

DESCRIPTION ^

 Produce antisymmetric grayscale cmap for displaying signed data in
 conjunction with contours.  Has 2N-1 shades, ranging from white to white,
 passing through black in the middle.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function cmap = bigrayscale(N)
0002 % Produce antisymmetric grayscale cmap for displaying signed data in
0003 % conjunction with contours.  Has 2N-1 shades, ranging from white to white,
0004 % passing through black in the middle.
0005 
0006 if ~exist('N'), N=64; end
0007 a=gray(N);
0008 b=flipud(a);
0009 cmap = [b(1:(N-1),:); a];

Generated on Sun 24-Mar-2019 04:00:51 by m2html © 2003