evaluate_steady_state_file.m: fix two bugs in debugging mode

time-shift
Johannes Pfeifer 2018-11-16 09:24:43 +00:00
parent 60d95b65f2
commit f947a31b80
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ if length(M.aux_vars) > 0 && ~options.ramsey_policy
ys = h_set_auxiliary_variables(ys,exo_ss,params);
end
ys3 = ys;
idx = find(abs(ys0-ys1)>0);
idx = find(abs(ys0-ys1(1:M.orig_endo_nbr))>0);
if ~isempty(idx)
M.endo_names{idx}
else
@ -134,7 +134,7 @@ if length(M.aux_vars) > 0 && ~options.ramsey_policy
else
disp('2-invariant')
end
idx = find(abs(ys3-ys3)>0);
idx = find(abs(ys3-ys2)>0);
if ~isempty(idx)
M.endo_names{idx}
else