[Eeglablist] add events to the EEG data

Tarik S Bel-Bahar tarikbelbahar at gmail.com
Fri Feb 6 07:31:24 PST 2015


Hello Karlo, Hoping the below helps you a bit to move forward. Cheers, Tarik


**********************
Please first review these online tutorial pages if you haven't had a chance
to yet.
http://sccn.ucsd.edu/wiki/Chapter_03:_Event_Processing
http://sccn.ucsd.edu/eeglab/eventtut/eventtut_old2.html

Although there are other ways, you may try these steps:

1. Add an event using the GUI, and use the eegh command to see how you
should script it.
2. Make a matlab loop that runs through the events in your EEG file, and
finds the time of each your A events.
3. For each time from point 3, make a new time that is 1.5 second after
each A.
4. Make a new set of events called A at each of the times you derived at
Step 4.

You may use the "eeg_addnewevents" function in the eeglab distribution,
which should allow you to do step 5 above.

**make sure you have your times in the correct format (e.g, samples or
seconds as necessary for each function)

**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

**You may also explore other options for loading a text file with times to
be added in as events.

**********************












On Thu, Feb 5, 2015 at 5:16 PM, karlo gonzales <thats_karlo at yahoo.com>
wrote:

> Hi,
>
> We have an EEG data  with several events, which marked as 'A' and repeated
> every 5 sec.
> 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'.
>
> i am looking forward to hear from you.
>
> Thanks in advance,
> Karlo
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20150206/97fe3be4/attachment.html>


More information about the eeglablist mailing list