<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<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 tabindex="-1">
<div style="direction: ltr;" id="divRpF344424"><font face="Tahoma" color="#000000" size="2"><b>From:</b> fieldtrip-bounces@science.ru.nl [fieldtrip-bounces@science.ru.nl] on behalf of Seyedeh Samane Shojaei [samane.shojaie@gmail.com]<br>
<b>Sent:</b> 13 August 2015 07:21<br>
<b>To:</b> fieldtrip@science.ru.nl<br>
<b>Subject:</b> [FieldTrip] problem in pre-processing stage<br>
</font><br>
</div>
<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>
</body>
</html>