<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Hello Inbal,</span><div class="WordSection1"><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">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<sup>st</sup> sample of your trial is -100 samples from t=0). </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">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).</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Best,</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Stan</span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"> </span></p><p class="MsoNormal" style="line-height: 12pt;"><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";">Stan van Pelt, PhD</span></p><p class="MsoNormal" style="line-height: 12pt;"><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";">Donders Institute for Brain, Cognition and Behaviour, Radboud University Nijmegen </span></p><p class="MsoNormal" style="line-height: 12pt;"><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";">Kapittelweg 29, 6525 EN Nijmegen, Netherlands</span></p><p class="MsoNormal" style="line-height: 12pt;"><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";">E-mail:</span><span style="font-size: 10.5pt; font-family: Consolas;">  </span><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";"><a href="mailto:stan.vanpelt@donders.ru.nl" target="_blank"><span style="color: blue;">stan.vanpelt@donders.ru.nl</span></a> </span></p><p class="MsoNormal" style="line-height: 12pt;"><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";">Website:</span><span style="font-size: 10.5pt; font-family: Consolas;"> </span><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";"><a href="http://www.ru.nl/donders/" target="_blank"><span style="color: blue;">www.ru.nl/donders/</span></a></span></p><p class="MsoNormal" style="line-height: 12pt;"><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";">Phone:</span><span style="font-size: 10.5pt; font-family: Consolas;"> </span><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";"> (+31) (0)24 36 68495</span></p><p class="MsoNormal" style="line-height: 12pt;"><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";">Fax:</span><span style="font-size: 10pt; font-family: Consolas;">   </span><span style="font-size: 13pt; font-family: "Cordia New","sans-serif";"> (+31) (0)24 36 10989</span></p><p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span></p><div style="border-right: medium none; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">> <p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> fieldtrip-bounces@donders.ru.nl [mailto:fieldtrip-bounces@donders.ru.nl] <b>On Behalf Of </b>Inbal Lots<br>> <b>Sent:</b> Wednesday, May 04, 2011 2:26 PM<br>> <b>To:</b> fieldtrip@donders.ru.nl<br>> <b>Subject:</b> [FieldTrip] Question about trl</span></p></div><p class="MsoNormal"> </p><div><p class="MsoNormal">Hello<br>> my name is Inbal and I wanted to ask about trl.<br>> Say I define trl myself, as following: <br>> trl = [1000 , 1600 , -100]; <br>> Lets assume that the sampling rate is 1000Hz <br>> 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?<br>> <br>> Thanks<br>> Inbal</p></div></div></div></body></html>