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

get_error_message.m: condition on index being non-zero

dsge_likelihood will expand the vector due to entry four of info containing the penalty, creating a 0 for entry 2
parent e2694381
No related branches found
No related tags found
1 merge request!2003get_error_message.m: condition on index being non-zero
...@@ -45,7 +45,7 @@ switch info(1) ...@@ -45,7 +45,7 @@ switch info(1)
case 7 case 7
message = sprintf('One of the eigenvalues is close to 0/0 (the absolute value of numerator and denominator is smaller than %5.4f!\n If you believe that the model has a unique solution you can try to reduce the value of qz_zero_threshold.',DynareOptions.qz_zero_threshold); message = sprintf('One of the eigenvalues is close to 0/0 (the absolute value of numerator and denominator is smaller than %5.4f!\n If you believe that the model has a unique solution you can try to reduce the value of qz_zero_threshold.',DynareOptions.qz_zero_threshold);
case 8 case 8
if size(info,2)>=2 if size(info,2)>=2 && info(2)~=0
global M_; global M_;
disp_string = M_.param_names{info(2)}; disp_string = M_.param_names{info(2)};
for ii=1:length(info)-2 for ii=1:length(info)-2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment