eeg_colormap_script - play with colour mapping
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