<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>hi martin,</div><div><br></div><div>in that case the best is to add the trl field (under yourdata.cfg.trl) by hand. 'trl' is a simple matrix containing as many roys as epochs and 3 columns: the first your event onset, the second the pre-event period and the third your post event period. everything in sampling points. read the help info of definetrial.m. if you don't have the absolute starting points of your events, then it will probably work if you "fool" fieldtrip by adding some random numer in the first column.</div><div>once you have done your redefinetrial, then some sanity check using e.g. timelockanalysis yould be good just to see if your trl was correct.</div><div><br></div><div>good luck,</div><div>nathan</div><div><br></div><br><div><div>On 03.09.2008, at 10:48, Martin Bleichner wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi, <br>I am trying to do a 'Permutation tests for time-frequency representations: <br>Within trial experiments' as described in the tutorial.<br><br>However, I run into problems using the command redefinetrial(). <br>When I apply it to my preprocessed data I get the error message<br><span class="Apple-tab-span" style="white-space:pre">        </span>‘??? Error using ==> redefine trial at 112<br><span class="Apple-tab-span" style="white-space:pre">     </span>the trial definition is inconsistent with the data.’<br><br>This might be connected to the warning I get when I am using freqanalysis():<br>‘could not locate the trial definition ‘trl’ in the data structure’, however in this <br>case the analysis runs through without further problems.  <br><br>I am using data that was preprocessed (re-referencing and epoching) in eeglab <br>and than imported into fieldtrip using eeglab2fieldtrip(), and my data struct <br>does not contain the ‘trl’ field. <br><br>What could I do? I could also do my preprocessing and epoching in fieldtrip, but <br>I could not figure out how to import my micromed (.trc) files into fieldtrip, so I <br>always took the route via eeglab. <br><br>Thanks for you help<br><br>Martin<br><br>----------------------------------<br>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also <a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a href="http://www.ru.nl/fcdonders/fieldtrip">http://www.ru.nl/fcdonders/fieldtrip</a>.<br></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><b>--------------------------------------------</b></div><div><b>Attention: New Contact Details</b></div><div><b>--------------------------------------------</b></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; "><b style="font-size: 13px; font-weight: bold; ">Dr. Nathan Weisz</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; "><br class="khtml-block-placeholder"></span></font></div><div><i>OBOB-Lab</i></div><div>University of Konstanz</div><div>Department of Psychology</div><div>P.O. Box D23</div><div>78457 Konstanz</div><div>Germany</div><div><br></div><div><b style="font-weight: bold; ">Tel</b>: ++49 - (0)7531 - 88 45 84</div><div><b style="font-weight: bold; ">Email:<span class="Apple-converted-space"> </span></b><a href="mailto:nathan.weisz@uni-konstanz.de">nathan.weisz@uni-konstanz.de</a></div><div><b style="font-weight: bold; ">Homepage</b>: <a href="http://www.uni-konstanz.de/obob">http://www.uni-konstanz.de/obob</a></div><div><br></div><div><div>"Nothing shocks me. I'm a scientist." (Indiana Jones)</div></div></div></div></span></div></span></div></span></div></span></div></span></div></span> </div><br></body></html><p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>