From fe24f80066eb55787fc368e599e4ab0dff18f653 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Sat, 12 Oct 2013 10:42:16 +0200 Subject: [PATCH] Add debugging information for not displayed IRFs due to size --- matlab/PosteriorIRF_core2.m | 4 ++++ matlab/stoch_simul.m | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/matlab/PosteriorIRF_core2.m b/matlab/PosteriorIRF_core2.m index badef0e40..f33fbc283 100644 --- a/matlab/PosteriorIRF_core2.m +++ b/matlab/PosteriorIRF_core2.m @@ -133,6 +133,10 @@ for i=fpar:npar, end name = deblank(varlist(j,:)); title(name,'Interpreter','none') + else + if options_.debug + fprintf('POSTERIOR_IRF: The IRF of %s to %s is smaller than the irf_plot_threshold of %4.3f and will not be displayed.\n',deblank(varlist(j,:)),tit(i,:),options_.impulse_responses.plot_threshold) + end end if subplotnum == MaxNumberOfPlotPerFigure || (j == nvar && subplotnum> 0) diff --git a/matlab/stoch_simul.m b/matlab/stoch_simul.m index 5ba12516b..40de6df2c 100644 --- a/matlab/stoch_simul.m +++ b/matlab/stoch_simul.m @@ -209,6 +209,10 @@ if options_.irf mylistTeX = char(mylistTeX,deblank(var_listTeX(j,:))); end end + else + if options_.debug + fprintf('STOCH_SIMUL: The IRF of %s to %s is smaller than the irf_plot_threshold of %4.3f and will not be displayed.\n',deblank(M_.endo_names(i_var(j),:)),deblank(M_.exo_names(i,:)),options_.impulse_responses.plot_threshold) + end end end if options_.nograph == 0