From fe938c902af6ee35f92c488fc5d1470125c7e3b1 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx,de> Date: Sun, 1 Mar 2015 13:34:39 +0100 Subject: [PATCH] Fixed another bug related to options_.optim_opt being now initialized as an empty array Finalizes 392486273e29a3a5617c6f0580231c0bb7163fd8 --- 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 589a5010b4..f64960504a 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -235,7 +235,7 @@ if ~isequal(options_.mode_compute,0) && ~options_.mh_posterior_mode_estimation if options_.mode_compute==5 %get whether analytical Hessian with non-analytical mode-finding is requested newratflag=[]; - if isfield(options_,'optim_opt') + if ~isempty(options_.optim_opt) options_list = read_key_value_string(options_.optim_opt); for i=1:rows(options_list) if strcmp(options_list{i,1},'Hessian') -- GitLab