Skip to content
Snippets Groups Projects
Verified Commit ff06b9ad authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

More Octave compatibility fixes

parent f164750a
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ function dynare_estimation_1(var_list_,dname)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2003-2018 Dynare Team
% Copyright (C) 2003-2021 Dynare Team
%
% This file is part of Dynare.
%
......@@ -32,6 +32,11 @@ function dynare_estimation_1(var_list_,dname)
global M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info
if ~exist([M_.dname filesep 'Output'],'dir')
if isoctave && ~exist(M_.dname)
% See https://savannah.gnu.org/bugs/index.php?61166
% This workaround is needed for recursive estimation.
mkdir(M_.dname)
end
mkdir(M_.dname,'Output');
end
......
......@@ -58,4 +58,10 @@ eparams.beta = 1;
simulations.ey = dseries(NaN); // Reset residuals of the equation to NaN.
if ~isoctave
% Under Octave, estimate.nls (provided by matlab/+estimate/nls.m) is not
% accessible because there is a function which has the same name as the
% +estimate package, namely matlab/cli/estimate.m. This is a known Octave
% bug (https://savannah.gnu.org/bugs/?func=detailitem&item_id=46889).
estimate.nls('eq4y', eparams, simulations, dates('3Y'):simulations.dates(end));
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment