From 97e5bf83944840936acfa42e2a9da7300dfa65b3 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 21 Oct 2015 12:21:45 +0200
Subject: [PATCH] add showOutput option to canned irf macro

---
 macros/make_report_irfs.m | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/macros/make_report_irfs.m b/macros/make_report_irfs.m
index 9fd2962..e4e30f6 100644
--- a/macros/make_report_irfs.m
+++ b/macros/make_report_irfs.m
@@ -1,10 +1,11 @@
-function make_report_irfs(M, oo, ticks_every)
+function make_report_irfs(M, oo, ticks_every, showOutput)
 % Builds canned IRF report
 %
 % INPUTS
 %   M             [struct]
 %   oo            [struct]
 %   ticks_every   [int]      number of spaces between ticks. Default 5.
+%   showOutput    [bool]     showOutput the report. Default true
 %
 % OUTPUTS
 %   None
@@ -54,11 +55,15 @@ function make_report_irfs(M, oo, ticks_every)
   if nargin < 3
       ticks_every = 5;
   end
-
+  if nargin < 4
+      showOutput = true;
+  else
+      assert(islogical(showOutput));
+  end
   n6 = 1;
   justAddedPage = 0;
   calcxticks = false;
-  r = report('filename', [M.fname '_canned_irf_report.tex']);
+  r = report('filename', [M.fname '_canned_irf_report.tex'], 'showOutput', showOutput);
   for i = 1:length(M.exo_names)
       newexo = 1;
       for j = 1:length(M.endo_names)
-- 
GitLab