From b15cfd14047442a8d68000ddc997c82f3234c251 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 2 Jul 2015 10:08:08 +0200 Subject: [PATCH] update make_report_irfs --- matlab/reporting/macros/make_report_irfs.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/matlab/reporting/macros/make_report_irfs.m b/matlab/reporting/macros/make_report_irfs.m index d457f0764..1058c29d1 100644 --- a/matlab/reporting/macros/make_report_irfs.m +++ b/matlab/reporting/macros/make_report_irfs.m @@ -1,7 +1,8 @@ function make_report_irfs(M, oo) -% Builds posterior IRFs after the MH algorithm. +% Builds canned IRF report % % INPUTS +% M [struct] % oo [struct] % % OUTPUTS @@ -50,11 +51,13 @@ function make_report_irfs(M, oo) for i = 1:length(M.exo_names) for j = 1:length(M.endo_names) if mod(n6 - 1, 6) == 0 - r = r.addPage('title', {'Canned Irf Report'; ['shock ' M.exo_names(i)]}); + r = r.addPage('title', {'Canned Irf Report'; ['shock ' ... + strrep(strtrim(M.exo_names(i,:)),'_','\_')]}); r = r.addSection('cols', 2); n6 = 1; end - idx = ismember(fields,[M.endo_names(j) '_' M.exo_names(i)]); + idx = ismember(fields,[strtrim(M.endo_names(j,:)) '_' ... + strtrim(M.exo_names(i,:))]); if any(idx) r = r.addGraph('data', dseries(oo.irfs.(fields{idx})'), ... 'title', strrep(fields{idx}, '_', '\_'), ...