diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index 11a754d0f..1294f7b5f 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -133,7 +133,7 @@ end % Check if a _prior_restrictions.m file exists if exist([M_.fname '_prior_restrictions.m']) options_.prior_restrictions.status = 1; - options_.prior_restrictions.routine = str2func([M_.fname '_prior_restrictions.m']); + options_.prior_restrictions.routine = str2func([M_.fname '_prior_restrictions']); end % Check that the provided mode_file is compatible with the current estimation settings.