[FieldTrip] errors with ft_definetrial

Stolk, A. a.stolk at fcdonders.ru.nl
Tue Jul 17 21:39:06 CEST 2012

Hi Sylvia, What values exactly do you get for the 'trial' and 'trigger' event types? If, for instance, you have the values 1 and 2 (e.g. for conditions 1 and 2 respectively) for the 'trigger' event type, you can specifically read condition 1 by using: cfg.trialdef.eventtype = 'trigger'; cfg.trialdef.eventvalue = 1;  and more generally cfg.trialdef.prestim = 1; % one second before trigger with value 1 cfg.trialdef.poststim = 2; % two seconds after trigger with value 1 Hope this solves your problem? Arjen ----- Oorspronkelijk bericht -----
> Van: "S Guillory" <sguillor at ucla.edu>
> Aan: fieldtrip at donders.ru.nl
> Verzonden: Dinsdag 17 juli 2012 20:18:24
> Onderwerp: [FieldTrip] errors with ft_definetrial
> Hello,
>  I'm trying to timelock to a specific event in an epoch and I'm
> having some difficulty setting it up in matlab. When not specifying an
> event, i.e. using '?', it identifies two types of events 'trial'
> and 'trigger' as well as the values. The problem I'm having is that
> there are two different triggers per trial and I am interested in only
> one of them, however when I specify cfg.trialdef.eventtype = 'trigger'
> and the cfg.trialdef.eventvalue = 'triggername', I get an error that
> no trials were defined. Is there a way to isolate the specific
> trigger without having to code a trial function. Thank you in advance
> for your time.
>  -Sylvia
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120717/5303f36f/attachment-0002.html>

More information about the fieldtrip mailing list