[FieldTrip] Question about trl

Stan van Pelt stan.vanpelt at fcdonders.ru.nl
Wed May 4 14:56:59 CEST 2011

Hello Inbal, 

That is not quite correct. Say you define a trial as cfg.trl=[1000 1600 -100], then “-100” is the offset (in samples) of your time axis. So, for this trial, you will get a dataset of 600 samples (or also ms in your example case) length (=1600-1000), of which sample 101 will be defined as t=0s (-100 meaning that the 1 st sample of your trial is -100 samples from t=0). 

So, the third column in cfg.trl doesn’t affect which part of the data will de used to define the trial (samples 1000 to 1600 will always be read from your data), but only affects the position of t=0 on the time-axis of your trial (data.time). 



Stan van Pelt, PhD 

Donders Institute for Brain, Cognition and Behaviour, Radboud University Nijmegen 

Kapittelweg 29, 6525 EN Nijmegen, Netherlands 

E-mail: stan.vanpelt at donders.ru.nl 

Website: www.ru.nl/donders/ 

Phone: (+31) (0)24 36 68495 

Fax: (+31) (0)24 36 10989 


From: fieldtrip-bounces at donders.ru.nl [mailto:fieldtrip-bounces at donders.ru.nl] On Behalf Of Inbal Lots 
> Sent: Wednesday, May 04, 2011 2:26 PM 
> To: fieldtrip at donders.ru.nl 
> Subject: [FieldTrip] Question about trl 

> my name is Inbal and I wanted to ask about trl. 
> Say I define trl myself, as following: 
> trl = [1000 , 1600 , -100]; 
> Lets assume that the sampling rate is 1000Hz 
> trl defines, as far as I understand, the onset at sample #1000, the data start of the data to analyze , before onset, at sample #900 and the end of the data to analyze at sample # 1500. Is that so? 
> Thanks 
> Inbal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110504/9548c594/attachment-0002.html>

More information about the fieldtrip mailing list