[Eeglablist] pop_rejmenu, pop_epoch

Ольга Протасенко oprotasenko at mail.ru
Sat Apr 14 11:26:56 PDT 2012


Thank you very much, Jason!!


Thu, 12 Apr 2012 16:24:38 -0700 от Jason Palmer <japalmer29 at gmail.com>:
> For 2), my approach is to create a new event type, then use pop_epoch(). E.g.,
> 
> num_events = length(EEG.event);
> newev = EEG.event;
> for k = 1:num_events-1
> if strcmp(newev(k).type,'2') && strcmp(newev(k+1).type,'8')
> newev(k).type = '16';
> end
> end
> EEG2 = EEG;
> EEG2.event = newev;
> EEG2 = pop_epoch(EEG2,{'16'},[-0.5 1.0]);
> 
> For 3) you might use pop_select to get remove those channels, and then
> plot with the new dataset, e.g.,
> 
> EEG2 = pop_select(EEG,'nochannel',{'HEOG','VEOGL'});
> ...
> 
> 
> 
> On 4/11/12, Ольга Протасенко <oprotasenko at mail.ru> wrote:
> > Hello!
> >
> > 1) I have a problem with pop_rejmenu in my script.
> > This function is not the last one in the code and when it starts working
> > (when the first window appears), the script does not wait for its end and
> > goes on (calculates the following functions).
> >
> > 2) And one more question about pop_epoch.
> > I have 4 epoch types: 1,2,4,8. I need to extract such epochs '2', which are
> > followed by epoch '8'. How can it be done.
> >
> > And the last simplest question.
> > 3) How can I remove channels 'HEOG' and 'VEOGL' from pop_eegplot and other
> > figures?
> >
> > 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
> >




More information about the eeglablist mailing list