[Eeglablist] How can I add events to epoched EEG data via matching variables?

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Wed May 10 14:14:50 PDT 2017


Dear Marina,

Sorry for belated response.
You may find this page useful in doing it by coding.
https://sccn.ucsd.edu/wiki/Makoto's_useful_EEGLAB_code#Event_types

Makoto

On Mon, Mar 6, 2017 at 6:25 AM, <marina.wunderlin at students.unibe.ch> wrote:

> How can I add events to epoched EEG data via matching variables?
>
> My EEG Variable has the following structure for events:
>
> EEG.event: 1X157 struct (157 epochs of a EEG recording)
>
>     - EEG.event.type              --> specific number for each type of
> stimulus
>
>     - EEG.event.accuracy        --> empty
>
>     - ...
>
>     - ...
>
>
> I already read the event info into matlab. Its an array containing subject
> ID, Number of Stimulus and Accuracy for each trial --> trialdata 795x3
>
>
> I want to add the accuracy data from this table (trialdata) to
> EEG.event.accuracy, but it has to be matched for the stimulus number that
> is in both the array "trialdata" and the variable EEG.event.type.
>
>
> I was going for a loop with this basis:
>
>
> for i = 1:size(VAR.event)
>
> (VAR.event(i).type)
>
> VAR.event(i).accuracy = trialdata....
>
> end.
>
>
> ...and this is where i'm stuck. How can I tell the loop that I want the
> stimulus-matched accuracy read into it?
>
>
> I tried it via the user interface first, but the problem seems to be that
> I don't do the matching via latencies...
>
>
>
>
> _______________________________________________
> 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
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20170510/030cf9d1/attachment.html>


More information about the eeglablist mailing list