[Eeglablist] Problem epoching backwards using 0 as start/end point

Dritan Nikolla dritannikolla at yahoo.com
Thu Jul 19 03:32:22 PDT 2018


Hi all,
I am trying to epoch from 4 seconds before an event up to the event. the code I am using is this:

EEG = pop_epoch( EEG, triggers, [0  -4], 'newname', sprintf('epoch_%s', files(index).name), 'epochinfo', 'yes');




I also tried this:




EEG = pop_epoch( EEG, triggers, [-4  0], 'newname', sprintf('epoch_%s', files(index).name), 'epochinfo', 'yes');



triggers is a cell array: 




  triggers = {'Center_Right_Right' 'Center_Right_Left' 'Center_Left_Right' 'Center_Left_Left'...

              'L_Right_Right' 'L_Right_Left' 'R_Right_Right' 'R_Right_Left' 'L_Left_Right'...

              'L_Left_Left' 'R_Left_Right' 'R_Left_Left' 'CenterEmpty_Right'       'CenterEmpty_Left'...

              'RightEmpty_Right' 'RightEmpty_Left' 'Left_Empty_Right' 'Left_Empty_Left'};
The algorithm works fine, no errors, however, when I checked the data manually I found that both codes above epoch from event to 4 second after the event and I want to epoch 4 seconds before. What am I doing wrong?
Thank you very much,Dritan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20180719/bfed4973/attachment.html>


More information about the eeglablist mailing list