<div dir="ltr">Dear Stephen,<div><br></div><div>It is solved when I provided the full path to the dataset.</div><div><br></div><div>Thanks a lot,</div><div>Samane</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 13, 2015 at 2:04 PM, Stephen Whitmarsh <span dir="ltr"><<a href="mailto:stephen.whitmarsh@ki.se" target="_blank">stephen.whitmarsh@ki.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi
<font face="Tahoma" color="#000000" size="2">Seyede,<br>
<br>
Have you tried providing the full path to the dataset, e.g. cfg.dataset = 'C:/data/MEG/ArtifactRemoval.ds'?
<br>
Adding the dataset directory to the path as you did, doesn't make those files accessible to MATLAB when loading data etc. I would remove that.<br>
<br>
If its still doesn't work, try to work through the initial steps here, and see where it breaks:<br>
<a href="http://www.fieldtriptoolbox.org/getting_started/ctf" target="_blank">http://www.fieldtriptoolbox.org/getting_started/ctf</a><br>
<br>
Cheers,<br>
Stephen<br>
<br>
P.s. Of course you could run your script from the dataset directory but this is *highly* discouraged and will result in problems further down the line.<br>
<br>
</font>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000" size="2"><b>From:</b> <a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a> [<a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a>] on behalf of Seyedeh Samane Shojaei [<a href="mailto:samane.shojaie@gmail.com" target="_blank">samane.shojaie@gmail.com</a>]<br>
<b>Sent:</b> 13 August 2015 07:21<br>
<b>To:</b> <a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br>
<b>Subject:</b> [FieldTrip] problem in pre-processing stage<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr"><span style="font-size:12.8000001907349px">Dear all,</span>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">I am a new user of FieldTrip, I got problem at the first stage of reading data. I am using Matlab R2011a, windows 7, 64 bit. when I run my code, the following problem appears:</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">
<div>addpath('FielTrip\fieldtrip-lite-20150810\fieldtrip-20150810')</div>
<div>addpath('FielTrip\Tutorial\ArtifactRemoval\ArtifactRemoval.ds')</div>
<div>ft_defaults</div>
<div>% ft_preprocessing of example dataset</div>
<div>cfg = [];</div>
<div>cfg.dataset = 'ArtifactRemoval.ds'; </div>
<div>cfg.trialdef.eventtype = 'trial';</div>
<div>cfg = ft_definetrial(cfg);</div>
</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">
<div><font color="#ff0000">Warning: could not determine filetype of ArtifactRemoval.ds </font></div>
<div><font color="#ff0000">> In ft_filetype at 1221</font></div>
<div><font color="#ff0000"> In utilities\private\dataset2files at 42</font></div>
<div><font color="#ff0000"> In ft_checkconfig at 541</font></div>
<div><font color="#ff0000"> In ft_definetrial at 128</font></div>
<div><font color="#ff0000"> In ICAremoveEOG at 9</font></div>
<div><font color="#ff0000">Warning: no trialfun was specified, using ft_trialfun_general </font></div>
<div><font color="#ff0000">> In ft_definetrial at 135</font></div>
<div><font color="#ff0000"> In ICAremoveEOG at 9</font></div>
<div><font color="#ff0000">evaluating trialfunction 'ft_trialfun_general'</font></div>
<div><font color="#ff0000">??? Error using ==> ft_read_header at 2053</font></div>
<div><font color="#ff0000">unsupported header format (unknown)</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000">Error in ==> ft_trialfun_general at 78</font></div>
<div><font color="#ff0000">hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000">Error in ==> ft_definetrial at 174</font></div>
<div><font color="#ff0000"> [trl, event] = feval(cfg.trialfun, cfg);</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#ff0000">Error in ==> ICAremoveEOG at 9</font></div>
<div><font color="#ff0000">cfg = ft_definetrial(cfg);</font></div>
<div><font color="#ff0000"><br>
</font></div>
<div><font color="#000000">It is appreciated if you could help me.</font></div>
<div><font color="#000000">Regards,</font></div>
<div><font color="#000000">Samane</font></div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>