Fixed another bug related to options_.optim_opt being now initialized as an empty array

Finalizes  392486273e
time-shift
Johannes Pfeifer 2015-03-01 13:34:39 +01:00
parent 11e0ff4818
commit fe938c902a
1 changed files with 1 additions and 1 deletions

View File

@ -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')