<div dir="ltr"><div class="gmail_default" style="color:rgb(51,51,153)"><div class="gmail_default">Apologies, three small corrections in bold. Of course, James' solution is near-ideal !</div><div class="gmail_default"><br></div><div class="gmail_default"><div>**********************</div><div><div>Please first review these online tutorial pages if you haven't had a chance to yet.</div><div><a href="http://sccn.ucsd.edu/wiki/Chapter_03:_Event_Processing" target="_blank">http://sccn.ucsd.edu/wiki/Chapter_03:_Event_Processing</a><br></div><div><a href="http://sccn.ucsd.edu/eeglab/eventtut/eventtut_old2.html" target="_blank">http://sccn.ucsd.edu/eeglab/eventtut/eventtut_old2.html</a></div></div><div><br></div></div><div class="gmail_default"><div class="gmail_default" style="font-size:13px">1. Add an event using the GUI, and use the eegh command to see how you should script it.</div><div class="gmail_default" style="font-size:13px">2. Make a matlab loop that runs through the events in your EEG file, and makes a list of latencies of each your A events. </div><div class="gmail_default" style="font-size:13px">3. For each time from <b>point 2</b>, make a new time that is 1.5 seconds after each A. </div><div class="gmail_default" style="font-size:13px">4. Make a list of new set of events called A at each of the times you derived at <b>Step 3</b>.</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px">You may use the "eeg_addnewevents" function in the eeglab distribution,<br></div><div class="gmail_default" style="font-size:13px">which should allow you to do <b>step 4 above.</b></div></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">**make sure you have your times in the correct format (e.g, samples or seconds as necessary for each function)</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">**in your loop you could write an event each time you find an event 'A' but it's quicker if you make all the times at once with the eeg_addnewevents function</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">**You may also explore other options for loading a text file with times to be added in as events.</div><div style="color:rgb(51,51,153)"><br></div><div style="color:rgb(51,51,153)">**********************</div></div><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="color:rgb(51,51,153)"></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 5, 2015 at 5:16 PM, karlo gonzales <span dir="ltr"><<a href="mailto:thats_karlo@yahoo.com" target="_blank">thats_karlo@yahoo.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px"><div dir="ltr">Hi, </div><div dir="ltr"><br></div><div dir="ltr">We have an EEG data  with several events, which marked as 'A' and repeated every 5 sec. </div><div dir="ltr">what i am looking for is a way to add extra events to the data such as  event '1' and appears 1.5 sec after event 'A'. </div><div dir="ltr"><br></div><div dir="ltr">i am looking forward to hear from you.</div><div dir="ltr"><br></div><div dir="ltr">Thanks in advance,</div><div dir="ltr">Karlo</div></div></div><br></div></div>_______________________________________________<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" target="_blank">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" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br></div>
</blockquote></div><br></div></div>