[Eeglablist] Extract epochs
Ольга Протасенко
oprotasenko at mail.ru
Fri Apr 20 09:27:20 PDT 2012
Hello!
Have you solved your problem? I have a one like yours. My event type labels are numeric.
Quoting aarjona at us.es:
> 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