From e12367067577fa773c465f1067c1ec3d5faf5551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 13 Sep 2013 18:23:24 +0200 Subject: [PATCH] Fix bug introduced in 952139b The 'hh' variable is now always defined, so we now test if it is empty. --- matlab/dynare_estimation_1.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index d58fb492d..7e5071ded 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -310,7 +310,7 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation if ~exist('MeanPar','var') MeanPar = xparam1; end - if exist('hh','var') + if ~isempty(hh) CovJump = inv(hh); else% The covariance matrix is initialized with the prior % covariance (a diagonal matrix) %%Except for infinite variances ;-)