Skip to content
Snippets Groups Projects
Commit 13544b51 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

dynare_estimation_init.m: add file type to exist statement

parent be2d998a
No related merge requests found
...@@ -149,7 +149,7 @@ if ~isempty(bayestopt_) && any(bayestopt_.pshape==0) && any(bayestopt_.pshape~=0 ...@@ -149,7 +149,7 @@ if ~isempty(bayestopt_) && any(bayestopt_.pshape==0) && any(bayestopt_.pshape~=0
error('Estimation must be either fully ML or fully Bayesian. Maybe you forgot to specify a prior distribution.') error('Estimation must be either fully ML or fully Bayesian. Maybe you forgot to specify a prior distribution.')
end end
% Check if a _prior_restrictions.m file exists % Check if a _prior_restrictions.m file exists
if exist([M_.fname '_prior_restrictions.m']) if exist([M_.fname '_prior_restrictions.m'],'file')
options_.prior_restrictions.status = 1; options_.prior_restrictions.status = 1;
options_.prior_restrictions.routine = str2func([M_.fname '_prior_restrictions']); options_.prior_restrictions.routine = str2func([M_.fname '_prior_restrictions']);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment