[Eeglablist] changing the epoch duration

Baris Demiral demiral.007 at googlemail.com
Wed May 4 14:05:39 PDT 2011


One way to deal with this can be:
-Short-epoch the first long epoch
-Then delete the short epochs indexed bigger than one (keep the first epoch
EEG.epoch(1,1))
-Then create a new EEG set with this short epoch, and delete the initial
long epoch
-Recursively short-epoch the other long epochs and
-Append the first epochs of these long epochs to make a longer EEG set
(there is append function, works well)

for each long epoch
do short-epoch
save first short-epoch
delete other epochs
append the short epoch
go the the next long epoch


I hope this helps,
Baris


On Tue, May 3, 2011 at 6:18 PM, Cockburn, Jeffrey <
jeffrey_cockburn at brown.edu> wrote:

> Greetings.
>
> I like to take long epoch durations to give ICA a little more data to work
> with (about 5 seconds from start to finish surrounding my events of
> interest). After running ICA and extracting the components I need, I would
> like to reduce the epoch duration around the events of interest (about 1
> second from start to finish). I can't use the 'extract epochs' function
> because this produces duplicate events since the original 5 second epoch
> window captures more than one event of interest in each epoch. I've also
> tried manually reshaping EEG.data and EEG.times, but this seems to confuse
> EEGlab as to when events occur in relation to the raw EEG data. Is there an
> easier way to do this?
>
> Thanks
>
> _______________________________________________
> 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
>



-- 
SB Demiral, PhD.
Department of Psychology
7 George Square
The University of Edinburgh
Edinburgh, EH8 9JZ
UK
Phone: +44 (0131) 6503063
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20110504/0be58ccd/attachment.html>


More information about the eeglablist mailing list