<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Helvetica;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">Hi everyone. I’m new to FieldTrip and am excited to try it but I can’t get the tutorials started. I’ve downloaded fieldtrip-20190819 and I’m running MATLAB_R2015b. I’m trying to run the
“Trigger-based trial selection tutorial” (<a href="http://www.fieldtriptoolbox.org/tutorial/preprocessing/">http://www.fieldtriptoolbox.org/tutorial/preprocessing/</a>), but when I type “ft_definetrial(cfg)” in MATLAB it returns the long error pasted at the
end of this email. It looks like there is a problem with the “isfolder” function, and since the warning message points me to the documentation about setting paths (<a href="http://bit.ly/2SPPjUS">http://bit.ly/2SPPjUS</a>), I also tried re-setting everything
by typing this . . . <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">>> restoredefaultpath<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">>> addpath /Applications/MATLAB_R2015b.app/toolbox/fieldtrip-20190819/<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">>> ft_defaults<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">. . . but I get the same error message. I think this may be a backwards compatibility issue but I’m not sure how to troubleshoot it. Can anyone point me in the right direction?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">Dan Dillon<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">McLean Hospital<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">
<b><u>Here’s the error message</u></b>:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"> Warning: removing<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">"/Applications/MATLAB_R2015b.app/toolbox/fieldtrip-20190819/compat/matlablt2017b" from your path,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">see http://bit.ly/2SPPjUS
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">> In isfolder (line 21)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> In ft_version (line 64)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> In ft_preamble_init (line 50)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> In ft_preamble (line 83)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> In ft_definetrial (line 128)
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error using feval<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Undefined function 'isfolder' for input arguments of type 'char'.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in isfolder (line 27)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> [varargout{1:nargout}] = feval(mfilename, varargin{:});<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in ft_version (line 64)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> issvn = isfolder(fullfile(ftpath, '.svn'));<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in ft_preamble_init (line 50)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">[FjmoT6aA_ft_ver, FjmoT6aA_ft_path] = ft_version;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in ft_preamble (line 83)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">evalin('caller', full_cmd);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in ft_definetrial (line 128)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">ft_preamble init<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><o:p> </o:p></span></p>
</div>
</body>
</html>