<div dir="ltr">Hi Xianghong,<div><br></div><div>The EEG.event or EEG.epoch structures have the triggers, and you can use this modify triggers based on neighboring events. For example, if you want to find all instances of trigger 1 that are immediately followed by trigger 2, you can write a loop in MATLAB that compares EEG.event(n) to EEG.event(n+1) and rewrites the appropriate events (for example, converts those 1s into 12s); it's hard to say more without knowing specifically what you want to do, but there are earlier messages on this mailing list with sample code for doing things like this.</div><div><br></div><div>Alternatively, if you don't want to do it in MATLAB code, I believe the ERPLAB plugin has a lot of options for advanced trial selection like this.</div><div><br></div><div>Best,</div><div>Steve</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br><a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br></div></div>
<br><div class="gmail_quote">On Tue, Sep 23, 2014 at 1:55 AM, Xianghong <span dir="ltr"><<a href="mailto:xianghong@hmri.org" target="_blank">xianghong@hmri.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I want to analyze the ERPs based on trigger 1, as well as other triggers (such as trigger 2 for correct responses only). How could I do that?<br>
Thanks,<br>
Best,<br>
<br>
Xianghong<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>