After you epoch the whole data with the longest interval, you go through the epochs and use EEG.epoch(1,j).eventtype(1,k) from 6<k<10 and check whether any correct response (hopefully you have a specific trigger for these) occurred (you can use for/isequal), if not you put the epoch to the incorrect category. Best way to understand what I am saying is to open an epoched file and investigate the EEG.epoch structure. Then you can re-epoch again and make shorter epochs for correct trials.<br>
Best<div>Baris</div><div><br><div class="gmail_quote">On Tue, Jan 12, 2010 at 4:32 PM, Pruce,  Benjamin <span dir="ltr"><<a href="mailto:bpruce@indiana.edu">bpruce@indiana.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I am new to EEGlab and have a question about epochs.  I have a Rapid<br>
Serial Visual Presentation sentence comprehension study and I would<br>
like to only include correct answers for analysis of epochs.  My main<br>
problem is that the event I wish to epoch occurs 6 to 10 flags before<br>
the subject actually responds. The extra flags and response information<br>
I do not want included for the event, only to test as correct or<br>
incorrect.  How could I go about doing this?  I was going to make one<br>
long epoch that starts at the first flag and includes up until the<br>
response, but I am still not sure how I can then reject trials that do<br>
not pair correctly.  I realize I could do it by hand using trial<br>
rejection, but I was wondering if there is a faster way to do this?<br>
Any kind direction will be greatly appreciated as I am still learning<br>
the major uses of the software.<br>
<br>
Best,<br>
Ben Pruce<br>
<br>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>SB Demiral, PhD.<br>Department of Psychology <br>7 George Square<br>The University of Edinburgh<br>Edinburgh, EH8 9JZ<br>UK<br>Phone: +44 (0131) 6503063<br>
</div>