Download this file
1 2 3 4 5 6 7 8
function eegplot_readkey(src,evnt) % eegplot helper function to read key strokes if strcmp(evnt.Key, 'rightarrow')==1 eegplot('drawp',4); elseif strcmp(evnt.Key, 'leftarrow')==1 eegplot('drawp',1); end