diff --git a/matlab/dynare_solve.m b/matlab/dynare_solve.m index 613b01112..744a4734e 100644 --- a/matlab/dynare_solve.m +++ b/matlab/dynare_solve.m @@ -48,10 +48,10 @@ if jacobian_flag fprintf('\nSTEADY: The Jacobian contains Inf or NaN. The problem arises from: \n\n') for ii=1:length(infrow) if infcol(ii)<=M.orig_endo_nbr - fprintf('STEADY: Derivative of Equation %d with respect to Variable %s (initial value of %s: %g) \n',infrow(ii),M.endo_names(infcol(ii),:),M.endo_names(infcol(ii),:),x(infcol(ii))) + fprintf('STEADY: Derivative of Equation %d with respect to Variable %s (initial value of %s: %g) \n',infrow(ii),deblank(M.endo_names(infcol(ii),:)),deblank(M.endo_names(infcol(ii),:)),x(infcol(ii))) else %auxiliary vars orig_var_index=M.aux_vars(1,infcol(ii)-M.orig_endo_nbr).orig_index; - fprintf('STEADY: Derivative of Equation %d with respect to Variable %s (initial value of %s: %g) \n',infrow(ii),M.endo_names(orig_var_index,:),M.endo_names(orig_var_index,:),x(infcol(ii))) + fprintf('STEADY: Derivative of Equation %d with respect to Variable %s (initial value of %s: %g) \n',infrow(ii),deblank(M.endo_names(orig_var_index,:)),deblank(M.endo_names(orig_var_index,:)),x(infcol(ii))) end end fprintf('\nSTEADY: The problem most often occurs, because a variable with\n')