<div dir="auto"><div>Dear Dan,</div><div dir="auto"><br></div><div dir="auto">Yes, its your old matlab version; isfolder is a later MATLAB function. Can you get yourself an upgrade? Usually, your license will permit that, or your university would be able to do so. Matlab has improved a lot since, and in and case it will be increasingly difficult to keep things backwards compatible.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Stephen</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, 22 Aug 2019, 22:59 Dillon, Daniel G., <<a href="mailto:ddillon@mclean.harvard.edu">ddillon@mclean.harvard.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_9132042896900626573WordSection1">
<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/" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">http://bit.ly/2SPPjUS</a>), I also tried re-setting everything
by typing this . . . <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">>> restoredefaultpath<u></u><u></u></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/<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">>> ft_defaults<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></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?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">Thanks!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">Dan Dillon<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">McLean Hospital<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica">
<b><u>Here’s the error message</u></b>:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"> Warning: removing<u></u><u></u></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,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">see <a href="http://bit.ly/2SPPjUS" target="_blank" rel="noreferrer">http://bit.ly/2SPPjUS</a>
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">> In isfolder (line 21)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> In ft_version (line 64)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> In ft_preamble_init (line 50)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> In ft_preamble (line 83)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> In ft_definetrial (line 128)
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error using feval<u></u><u></u></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'.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in isfolder (line 27)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> [varargout{1:nargout}] = feval(mfilename, varargin{:});<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in ft_version (line 64)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"> issvn = isfolder(fullfile(ftpath, '.svn'));<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></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)<u></u><u></u></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;<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in ft_preamble (line 83)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">evalin('caller', full_cmd);<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">Error in ft_definetrial (line 128)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:14.0pt;font-family:Helvetica">ft_preamble init<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:Helvetica"><u></u> <u></u></span></p>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div></div></div>