[Eeglablist] add events to the EEG data
Tarik S Bel-Bahar
tarikbelbahar at gmail.com
Fri Feb 6 19:28:22 PST 2015
Apologies, three small corrections in bold. Of course, James' solution is
near-ideal !
**********************
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
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
makes a list of latencies of each your A events.
3. For each time from *point 2*, make a new time that is 1.5 seconds after
each A.
4. Make a list of new set of events called A at each of the times you
derived at *Step 3*.
You may use the "eeg_addnewevents" function in the eeglab distribution,
which should allow you to do *step 4 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/e7d174cf/attachment.html>
More information about the eeglablist
mailing list