Hello,<br><br>While trying to understand the ft_deinetrial<br><br>I tried the following example from the page (<a href="http://fieldtrip.fcdonders.nl/tutorial/preprocessing">http://fieldtrip.fcdonders.nl/tutorial/preprocessing</a>)<br>
<br>cfg = <span class="br0">[</span><span class="br0">]</span>;<br> cfg.<span class="me1">dataset</span> = <span class="co2">'Subject01.ds'</span>;<br> cfg.<span class="me1">trialdef</span>.<span class="me1">eventtype</span> = <span class="co2">'backpanel trigger'</span>;
<br> cfg.<span class="me1">trialdef</span>.<span class="me1">eventvalue</span> = <span class="nu0">3</span>; <span class="co1">% the value of the stimulus trigger for fully incongruent (FIC).</span><br> cfg.<span class="me1">trialdef</span>.<span class="me1">prestim</span> = <span class="nu0">1</span>; <span class="co1">% in seconds</span><br>
cfg.<span class="me1">trialdef</span>.<span class="me1">poststim</span> = <span class="nu0">2</span>; <span class="co1">% in seconds<br></span> cfg = ft_definetrial<span class="br0">(</span>cfg<span class="br0">)</span>;<br clear="all">
<br>I get the following error<br><br>readCTFds: Data set error : size of meg4 file(s)<br> 0 bytes (from dir command)<br> 179071200 bytes (from res4 file)<br><br>reading the events from 'Subject01.ds\Subject01.res4'<br>
<br>readCTFds: Data set error : size of meg4 file(s)<br> 0 bytes (from dir command)<br> 179071200 bytes (from res4 file)<br><br>??? Error using ==> ft_definetrial at 185<br>no trials were defined, see FT_DEFINETRIAL for help<br>
<br><br>I wonder why?<br><br>Best<br><br>-- <br>Hamza Fawzi Altakroury<br>Graduate student - MA<br>Faculty of Engineering and Natural Sciences<br>Sabancı University<br>