[FieldTrip] ft_definetrial with .nex files
Robert Oostenveld
r.oostenveld at donders.ru.nl
Fri Jan 20 10:43:36 CET 2012
Dear Tara,
To add to Jorns suggestion
On 19 Jan 2012, at 22:12, Tara Jacobson wrote:
> ...
> 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
The line "found 0 events" suggests that ft_read_event (which is called in ft_definetrial) did not find any events in your nex file. I suggest you look into the ft_read_event MATLAB code (and the underlying nex functions) to figure out why it does not detect the triggers in the nex file.
best
Robert
More information about the fieldtrip
mailing list