[Eeglablist] missing events when using the script but not when using the GUI
Bernhardsson Jens
Jens.Bernhardsson at miun.se
Thu Jan 11 02:08:32 PST 2018
Hi
Sometimes there is a problem between numerical and strings if you are sending numerical triggers. You have this problem for instance importing data from ANT.
Run code below to see if it fixes the problem:
for i=1:size(EEG.event,2);
EEG.event(i).type=str2num(EEG.event(i).type);
EEG.event(i).type=num2str(EEG.event(i).type);
EEG.event(i).urevent=i;
end;
Regards
Jens
Från: eeglablist [mailto:eeglablist-bounces at sccn.ucsd.edu] För Mariam Kostandyan
Skickat: den 10 januari 2018 09:30
Till: eeglablist at sccn.ucsd.edu
Ämne: Re: [Eeglablist] missing events when using the script but not when using the GUI
Dear all,
I encountered a bit weird problem when I don't find EEG events when using a script but when I check the EEG data in the GUI the events are there. More specifically, I run the following script to check whether all the events are present in the .set file:
[types type_count]=list_event_types('cue23-s20-clean.set');
I get empty cells for event_count as you can see on the picture (follow the link here https://docs.google.com/drawings/d/18TcmQ37nINgM_YVcyt9gpeKgOf0pXWJAS-ns6sqHfZk/edit). However, the events are there (n=283) as it is shown in the GUI.
What can be the possible problem here?
Kind regards,
Mariam
----------------------
Mariam Kostandyan
PhD student
University of Gent
Department of Experimental Psychology
Henri Dunantlaan 2, 9000 Gent, Belgium
----------------------
Room 140.021
Tel.: +32 9 264 6398
E-mail: Mariam.Kostandyan at UGent.be<mailto:Mariam.Kostandyan at UGent.be>
E-mail: kostandyan.m at gmail.com<mailto:kostandyan.m at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20180111/f60864e7/attachment.html>
More information about the eeglablist
mailing list