[FieldTrip] select trial by previous trigger code

Stan van Pelt s.vanpelt at fcdonders.ru.nl
Tue Jun 18 11:11:06 CEST 2013


Dear Mads,

It is not possible to do this automatically. However, by writing your own
'trialfun', you should be able to program this in a relative
straightforward manner. You can enter this trialfun-name in the
cfg.trialfun configuration option when subsequently calling
ft_definetrial.
See
http://fieldtrip.fcdonders.nl/example/making_your_own_trialfun_for_conditi
onal_trial_definition

Best,
Stan

Stan van Pelt, PhD
Donders Institute for Brain, Cognition and Behaviour Centre for Cognition
Montessorilaan 3, B.01.19
6525 HR Nijmegen
tel: 024-3616288


-----Original Message-----
From: fieldtrip-bounces at science.ru.nl
[mailto:fieldtrip-bounces at science.ru.nl] On Behalf Of Mads Jensen
Sent: dinsdag 18 juni 2013 10:44
To: FieldTrip discussion list
Subject: [FieldTrip] select trial by previous trigger code

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



More information about the fieldtrip mailing list