[Eeglablist] pop_rejepoch
Kremlacek, Jan
jan.kremlacek at lfhk.cuni.cz
Thu Nov 5 09:50:41 PST 2009
Dear Piotr,
you should at first select which epochs should be deleted and then use
the pop_rejepoch.
This can be an example:
[EEG, indx]= pop_eegthresh(EEG,1,[1:63] ,-100,100, 0, 1, 2,0);
EEG = pop_rejepoch( EEG, indx ,0);
pop_saveset( EEG, 'filename',[ EEG.setname '_rej']);
With regards
JAn
From: eeglablist-bounces at sccn.ucsd.edu
[mailto:eeglablist-bounces at sccn.ucsd.edu] On Behalf Of Piotr Jaskowski
Sent: Wednesday, November 04, 2009 7:53 PM
To: eeglablist at sccn.ucsd.edu
Subject: [Eeglablist] pop_rejepoch
Hi All,
I want to write a script using dataset history. A part
of it is
EEG = pop_rejepoch(EEG,[2 10 37 etc.], 0);
In the help I found that the second input parameter is "Array of 0s and
1s (depicting rejected trials) (size is number of trials)". First, I see
no 0s and 1s. I expect these are epoch number to be rejected. Second, if
it is true, then the next problem is how should I call this routine in
the script if I don't know in advance which epochs should be rejected. I
expect that if I call it as it is with another dataset, the routine will
remove the same epochs as in the previous dataset, that is 2nd, 10th,
37th etc.
Could anyone help me with this problem?
Best,
Piotr Jaskowski
---------------------------------------------------
Prof. Piotr Jaskowski, Ph.D.
Department of Cognitive Psychology
University of Finance and Management
Pawia 55, 01-030 Warszawa, Poland
http://cogn.vizja.pl
--
Specjalna oferta ksiazek i podrecznikow: http://oferta.vizja.net.pl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20091105/c5a1452d/attachment.html>
More information about the eeglablist
mailing list