From 1e4c2e088178fe8fa253044d3513853066b98cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Mon, 28 Jul 2014 13:00:31 +0200 Subject: [PATCH] Fixed bug affecting prior restictions (removed the extension in the argument of str2func). --- matlab/dynare_estimation_init.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.