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

marina.wunderlin at students.unibe.ch marina.wunderlin at students.unibe.ch
Mon Mar 6 06:25:33 PST 2017


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20170306/96d70c05/attachment.html>


More information about the eeglablist mailing list