<div dir="ltr"><div class="gmail_default" style="color:#333399">Hello Min,</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">you can also use the function eeg_addnewevents. Similar to what Stephen mentioned,</div>

<div class="gmail_default" style="color:rgb(51,51,153)">Thus you could loop through your events, and whenever you encounter</div><div class="gmail_default" style="color:rgb(51,51,153)">one of the events that you want to lock to, create a new event, just putting</div>

<div class="gmail_default" style="color:rgb(51,51,153)">it back by one time sample so it does not overwrite the old one.</div><div class="gmail_default" style="color:rgb(51,51,153)">Whatever the case, you need to loop through events and times,</div>

<div class="gmail_default" style="color:rgb(51,51,153)">and then add in new events. The recommendation from Arno works well,</div><div class="gmail_default" style="color:rgb(51,51,153)">just add an event using the GUI and examine the command that gets generated</div>

<div class="gmail_default" style="color:rgb(51,51,153)">using eegh history call.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">Best wishes,</div>

<div class="gmail_default" style="color:rgb(51,51,153)">Tarik</div></div><div class="gmail_extra"><br clear="all"><div>Tarik Bel-Bahar, Postdoctoral Fellow<br>Perception, Performance & Psychophysiology Lab<br><a href="http://tarik.777@duke.edu/" target="_blank">tarik.777@duke.edu/</a> 919 328 9573<br>

Div. of Brain Stimulation and Neurophysiology<br>Dep. of Psychiatry and Behavioral Sciences<br>Duke University Medical Center, Duke Clinics<br>Red Zone, 5th Floor, Rm. 54236<br>200 Trent Drive, Durham, NC 27710</div>
<br><br><div class="gmail_quote">On Fri, Aug 30, 2013 at 6:01 PM, 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>