Moved isfile routine in missing.

This routine has been introduced in R2017b. Closes #1523.
time-shift
Stéphane Adjemian (Scylla) 2017-10-10 13:33:32 +02:00
parent a83258d4af
commit 560a047a53
2 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,11 @@ if ~exist('struct2array')
p{end+1} = '/missing/struct2array';
end
% isfile is missing in Octave and Matlab<R2017b
if isoctave || matlab_ver_less_than('9.3')
p{end+1} = '/missing/isfile';
end
P = cellfun(@(c)[dynareroot(1:end-1) c], p, 'uni',false);
% Get mex files folder(s)