Skip to content
Snippets Groups Projects
Commit c3223150 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Fix wrong display type in display_problematic_vars_Jacobian.m

Equation number is a double, not a string.
parent 988e79b5
Branches
Tags
1 merge request!1029Fix wrong display type in display_problematic_vars_Jacobian.m
...@@ -95,10 +95,10 @@ elseif strcmp(type,'static') ...@@ -95,10 +95,10 @@ elseif strcmp(type,'static')
if M_.aux_vars(1,problemcol(ii)-M_.orig_endo_nbr).type ==6 %Ramsey Lagrange Multiplier if M_.aux_vars(1,problemcol(ii)-M_.orig_endo_nbr).type ==6 %Ramsey Lagrange Multiplier
if problemrow(ii)<=aux_eq_nbr if problemrow(ii)<=aux_eq_nbr
eq_nbr=problemrow(ii); eq_nbr=problemrow(ii);
fprintf('Derivative of Auxiliary Equation %s with respect to Lagrange multiplier of equation %d (initial value: %g) \n',eq_nbr,M_.aux_vars(1,problemcol(ii)-M_.orig_endo_nbr).eq_nbr,x(problemcol(ii))) fprintf('Derivative of Auxiliary Equation %d with respect to Lagrange multiplier of equation %d (initial value: %g) \n',eq_nbr,M_.aux_vars(1,problemcol(ii)-M_.orig_endo_nbr).eq_nbr,x(problemcol(ii)))
else else
eq_nbr=problemrow(ii)-aux_eq_nbr; eq_nbr=problemrow(ii)-aux_eq_nbr;
fprintf('Derivative of Equation %s with respect to Lagrange multiplier of equation %d (initial value: %g) \n',eq_nbr,M_.aux_vars(1,problemcol(ii)-M_.orig_endo_nbr).eq_nbr,x(problemcol(ii))) fprintf('Derivative of Equation %d with respect to Lagrange multiplier of equation %d (initial value: %g) \n',eq_nbr,M_.aux_vars(1,problemcol(ii)-M_.orig_endo_nbr).eq_nbr,x(problemcol(ii)))
end end
else else
if problemrow(ii)<=aux_eq_nbr if problemrow(ii)<=aux_eq_nbr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment