[Eeglablist] Automated way of placing events

Arnaud Delorme arno at ucsd.edu
Thu May 10 20:54:59 PDT 2012


Hi Marco,

to do what you want to do, you should type in

EEG = pop_select(EEG, 'time', [10 EEG.xmax-10]); % remove the first and last 10 seconds
EEG = eeg_regepoch(EEG, 'recurrence', 2); % divide into 2 seconds non-overlaping blocks

Best,

Arno

On May 5, 2012, at 6:38 PM, Stephen Politzer-Ahles wrote:

> Hi Marco,
> 
> I haven't tried this myself, but you should be able to get any of these epochs from the same event using pop_epoch. Assuming that you have an event marking the beginning of the block, then the first epoch you want (i.e. 10-12 seconds after the event) would be
> 
> OUTEEG = pop_epoch( EEG, {events}, [10 12]);
> 
> the second would be
> 
> OUTEEG = pop_epoch( EEG, {events}, [12 14]);
> 
> etc.
> 
> Best,
> Steve
> 
> On Sat, May 5, 2012 at 4:33 PM, Marco Montalto <montaltomarco at onvol.net> wrote:
> Dear List,
> 
> In my experiment I have three conditions and each trial is 30 seconds long. I ignore the first and last 10 seconds of each block and the middle 10-second block I divide into epochs of 2-second duration. Currently I am doing this manually through the EEGLAB GUI by placing an event (with the same 'type' for blocks from the same condition) at every two seconds (in the middle 10-second block) and then extracting epochs around those events. Would anyone know whether there is a more automated and a faster way of doing this? Thanks in advance.
> 
> Regards,
> Marco Montalto
> _______________________________________________
> 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/
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20120510/325605a2/attachment.html>


More information about the eeglablist mailing list