[FieldTrip] ft_definetrial with .nex files

Tara Jacobson tara_jacobson at brown.edu
Thu Jan 19 22:12:55 CET 2012


Hello,

Does anyone have experience with .nex files?  It seems straight forward to
be able to define trials using events in the .nex, but ft_definetrial is
not recognizing them as events.

filename =('11-087_12292011.nex')


stim30Hz=[27.25275 159.26715 258.277925 357.2887 489.303075 522.306625
621.317425 786.335425 885.3462 984.356975 1083.36775 1149.3749 1281.3893
1347.396425 1446.40725 1578.4216 1644.4288 1776.443175 1875.45395
1974.464725];

cfg = [];
cfg.dataset = filename;

cfg.trialdef.triallength=3;
cfg.trialdef.eventtype=('Event007');
cfg.trialdef.eventvalue=stim30Hz;

cfg=ft_definetrial(cfg);

filename =
11-087_12292011.nex
Warning: no trialfun was specified, using trialfun_general
> In ft_definetrial at 95
evaluating trialfunction 'trialfun_general'
reading the events from '11-087_12292011.nex'
found 0 events
created 676 trials

My question is what are the 676 trials if it found no events?

Can anyone give me some advice?


Thanks very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120119/a31cec05/attachment-0001.html>


More information about the fieldtrip mailing list