[Eeglablist] Extract epochs

Stephen Politzer-Ahles politzerahless at gmail.com
Sun Apr 22 08:34:16 PDT 2012


Ольга,

What events are you trying to extract, and what error are you getting?

Best,
Steve Politzer-Ahles

On Fri, Apr 20, 2012 at 11:27 AM, Ольга Протасенко <oprotasenko at mail.ru>wrote:

> 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
> >
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu




-- 
Stephen Politzer-Ahles
University of Kansas
Linguistics Department
http://www.linguistics.ku.edu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20120422/65313c5a/attachment.html>


More information about the eeglablist mailing list