[FieldTrip] select trial by previous trigger code

"Jörn M. Horschig" jm.horschig at donders.ru.nl
Tue Jun 18 11:11:50 CEST 2013


Hi Mads,

such things are possible if you write your own trial function. 
Basically, you need to read in the events (i.e. trigger values) and then 
make a selection based on that, see also here:
http://fieldtrip.fcdonders.nl/example/making_your_own_trialfun_for_conditional_trial_definition?s[]=trialfun
http://fieldtrip.fcdonders.nl/faq/what_is_the_relation_between_events_such_as_triggers_and_trials?s[]=trialfun

Hope that helps!
Best,
Jörn

On 6/18/2013 10:44 AM, Mads Jensen wrote:
> Hi all,
>
> I would like to know if it is possible select a trail based on the 
> previous trigger code?
>
> I got a dataset (MEG, neuromeg) where sometimes the subject just press 
> a button and sometimes a cue is shown and they then press the button, 
> the button presses are coded "1" and the cue "2". So, what I would 
> like is to datasets one with trials where there has been no cue and 
> one dataset where the trials that have cue is. Is that possible to do 
> automatically or do I have to do a "by hand"?
>
> best wishes,
> mads
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands




More information about the fieldtrip mailing list