Hello,<br><br>I discovered the solution, I should but the full path of 'Subject01.ds'.<br>I did not saw that in the tutorial but I found that in the previous messages.<br><br>Best<br><br><div class="gmail_quote">On Sat, Apr 28, 2012 at 7:08 PM, Hamza Fawzi Altakroury (Student) <span dir="ltr"><<a href="mailto:hamzaf@sabanciuniv.edu" target="_blank">hamzaf@sabanciuniv.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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" target="_blank">http://fieldtrip.fcdonders.nl/tutorial/preprocessing</a>)<br>
<br>cfg = <span>[</span><span>]</span>;<br> cfg.<span>dataset</span> = <span>'Subject01.ds'</span>;<br> cfg.<span>trialdef</span>.<span>eventtype</span> = <span>'backpanel trigger'</span>;
<br> cfg.<span>trialdef</span>.<span>eventvalue</span> = <span>3</span>; <span>% the value of the stimulus trigger for fully incongruent (FIC).</span><br> cfg.<span>trialdef</span>.<span>prestim</span> = <span>1</span>; <span>% in seconds</span><br>
cfg.<span>trialdef</span>.<span>poststim</span> = <span>2</span>; <span>% in seconds<br></span> cfg = ft_definetrial<span>(</span>cfg<span>)</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<span class="HOEnZb"><font color="#888888"><br><br>-- <br>Hamza Fawzi Altakroury<br>Graduate student - MA<br>Faculty of Engineering and Natural Sciences<br>Sabancı University<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Hamza Fawzi Altakroury<br>Graduate student - MA<br>Faculty of Engineering and Natural Sciences<br>Sabancı University<br>