<div dir="ltr"><div class="gmail_default" style="color:rgb(51,51,153)">Hello Karlo, Hoping the below helps you a bit to move forward. Cheers, Tarik</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">**********************</div><div class="gmail_default" style="color:rgb(51,51,153)"><div class="gmail_default">Please first review these online tutorial pages if you haven't had a chance to yet.</div><div class="gmail_default"><a href="http://sccn.ucsd.edu/wiki/Chapter_03:_Event_Processing">http://sccn.ucsd.edu/wiki/Chapter_03:_Event_Processing</a><br></div><div class="gmail_default"><a href="http://sccn.ucsd.edu/eeglab/eventtut/eventtut_old2.html">http://sccn.ucsd.edu/eeglab/eventtut/eventtut_old2.html</a></div></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">Although there are other ways, you may try these steps:</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">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="color:rgb(51,51,153)">2. Make a matlab loop that runs through the events in your EEG file, and finds the time of each your A events. </div><div class="gmail_default" style="color:rgb(51,51,153)">3. For each time from point 3, make a new time that is 1.5 second after each A. </div><div class="gmail_default" style="color:rgb(51,51,153)">4. Make a new set of events called A at each of the times you derived at Step 4.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">You may use the "eeg_addnewevents" function in the eeglab distribution,<br></div><div class="gmail_default" style="color:rgb(51,51,153)">which should allow you to do step 5 above.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" 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 class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" 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 class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" 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 class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">**********************<br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;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>_______________________________________________<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>