[Eeglablist] Extract epochs
aarjona at us.es
aarjona at us.es
Thu Mar 10 04:33:51 PST 2011
Hello.
I´d like to extract epochs with eeglab, but no all epochs only some of them. Nevertheless, I only can extract all epochs of the record using tools-extract epochs. I have done one script, but it doesn´t work:
for i=1:length(EEG.event)-1
if (EEG.event(i).type==40 & EEG.event(i+1).type==44 & EEG.event(i+2).type==4)
EEG.event(i).type=4044; % cond. Val.Der
end;
if (EEG.event(i).type==20 & EEG.event(i+1).type==22 & EEG.event(i+2).type==2)
EEG.event(i).type=2022; % cond. Val.Izq
end;
if (EEG.event(i).type==40 & EEG.event(i+1).type==22 & EEG.event(i+2).type==2)
EEG.event(i).type=4022; % cond. Inval.Der
end;
if (EEG.event(i).type==20 & EEG.event(i+1).type==44 & EEG.event(i+2).type==4)
EEG.event(i).type=2044; % cond. Inval.Izq
end;
end;
EEG = pop_epoch( EEG, {'4044' '2022' '4022' '2044'}, [-0.2 2], 'newname', 'EEProbe continuous data epochs', 'epochinfo', 'yes');
Thank you very much everyone
More information about the eeglablist
mailing list