<div dir="ltr">Hi Min,<div><br></div><div>There should be lots of ways to do that<i>. </i>If you want to analyze epochs, you can use pop_selectevent() and give it the event indices 2:97 to pull out the epochs surrounding those events. Or you could rewrite the event values of EEG.event(2:97).eventtype, and then use those types to pull out epochs using pop_epoch(). If you want the continuous data from event 2 to 97, I think there are several ways to do it; one would be to find the latency of event 97 relative to event 2 (i.e., it is <i>n</i> milliseconds later than event 2), and pull out a single epoch of length <i>n</i> time-locked to event 2.</div>
</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div><div><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Psychology Department<br><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br>
</div></div>
<br><br><div class="gmail_quote">On Sat, Aug 31, 2013 at 2:01 AM, Min Sheng <span dir="ltr"><<a href="mailto:Min.Sheng@utsouthwestern.edu" target="_blank">Min.Sheng@utsouthwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Dear all;</p>
<p class="MsoNormal">I am processing visual ERP data, I have 768 events which under 2 different conditions( room air and hyperoxia). I did not mark these two conditions when record EEG data but I know the time period of each conditons.</p>

<p class="MsoNormal">Such as from event 2 to  event 97 was under room air. So can I extract this period and create a new dataset to do further analysis? I want to compare ERP under these two conditions.</p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal">Min Sheng</p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font face="Arial" color="Blue"><br>
UT Southwestern Medical Center<br>
The future of medicine, today.<br>
</font>
</div>

<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></div>