Home > bioelectromagnetism > eeg_colormap_script.m

eeg_colormap_script

PURPOSE ^

eeg_colormap_script - play with colour mapping

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 eeg_colormap_script - play with colour mapping

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 % eeg_colormap_script - play with colour mapping
0003 
0004 clear all, close all
0005 
0006 Map = eeg_colormap('Red/Blue/White'); colormap(Map);
0007 
0008 for i = 1:size(Map,1)
0009 
0010     c = Map(i,:);   % define patch color
0011 
0012     xp = [-5  5  5 -5];
0013     yp = [ i  i  i+1 i+1];
0014     
0015     patch(xp,yp,c)
0016 
0017 end
0018 colorbar

Generated on Mon 15-Aug-2005 15:36:19 by m2html © 2003