[FieldTrip] select trial by previous trigger code

Mads Jensen mje.mads at gmail.com
Tue Jun 18 23:52:02 CEST 2013


HI Jörn & Stan,

Thanks for your replies and advises. It worked.

thanks, best
mads



On 06/18/2013 11:11 AM, "Jörn M. Horschig" wrote:
> 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
>
>



More information about the fieldtrip mailing list