[Eeglablist] Creating new events
Sid Henriksen
sindre.henriksen.09 at aberdeen.ac.uk
Tue Jul 9 08:21:53 PDT 2013
Dear Arti,
After you have epoched, your trigger data is stored in
EEG.event(i).type, where i denotes the ith epoch, and which place in the
sequence of triggers it had is stored in EEG.event(i).urevent.
EEG.urevent contains all of the triggers with their respective latencies
used in your experiment. One solution to your problem would be to epoch
with 32 as the event, and then run this code:
for i = 1:length(EEG.event)
EEG.event(i).cond = EEG.urevent(EEG.event(i).urevent-1).type
end
This code should iterate through all your epochs, and assign the value
of the trigger preceding your epoch trigger (32) to EEG.event(i).cond.
When you subsequently do your ERPs or time-freq analysis, just make sure
you group your data according to the EEG.event(i).cond.
Best,
Sid
On 03/07/13 07:01, Arti Abhishek wrote:
> Dear list,
> I have the EEG data recorded from the 128 channel EGI system for an
> auditory experiment. The data contains triggers for the 4 conditions
> (trigger numbers 1,2,3,4) as well as a trigger from the AV tester
> (trigger 32). I would like to epoch based on the AV tester trigger. Is
> there a way to create new events from the existing events (eg: if the
> trigger 32 is preceded by trigger 1 then the condition is 1 etc..)
> Many thanks,
> Arti
>
>
> _______________________________________________
> 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/20130709/de5d4473/attachment.html>
More information about the eeglablist
mailing list