[FieldTrip] How to reverse trial order?

Julian Keil julian.keil at gmail.com
Thu Dec 4 12:06:52 CET 2014


Hi Barbara,

this can be solved by basic Matlab: Use the fliplr command to flip the trials.
For Example:

data.trial = fliplr(data.trial);

Good luck,

Julian


********************
Dr. Julian Keil

AG Multisensorische Integration
Psychiatrische Universitätsklinik
der Charité im St. Hedwig-Krankenhaus
Große Hamburger Straße 5-11, Raum E 307
10115 Berlin

Telefon: +49-30-2311-1879
Fax:        +49-30-2311-2209 
http://psy-ccm.charite.de/forschung/bildgebung/ag_multisensorische_integration

Am 04.12.2014 um 11:24 schrieb Barbara Schorr:

> Dear Fieldtrippers,
> 
> I would like to reverse the order of my trials (last trial to first position, first trial to last position).
> Is there a function for this (eg. sth like ft_reverse_trials?).
> 
> Thank you very much!!
> 
> Best regards,
> Barbara
> 
> 
> _______________________________________________
> 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/20141204/6a9246f6/attachment.html>


More information about the fieldtrip mailing list