From f56ae63f568c4b391fdcc5868f23814533bc5021 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 3 Jul 2013 09:18:44 +0200 Subject: [PATCH 1/2] Bugfix for calls to evaluate smoother in shock_decomposition In shock_decomposition, oo_ is local. Thus, if requested, make evaluate_smoother return oo_ --- matlab/evaluate_smoother.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/evaluate_smoother.m b/matlab/evaluate_smoother.m index 474deaa65..32f58a280 100644 --- a/matlab/evaluate_smoother.m +++ b/matlab/evaluate_smoother.m @@ -1,4 +1,4 @@ -function evaluate_smoother(parameters,var_list) +function oo_=evaluate_smoother(parameters,var_list) % Evaluate the smoother at parameters. % % INPUTS From 4ba1b3feb4a7f15f42ae8d5c14549a9b9012005e Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 3 Jul 2013 09:20:48 +0200 Subject: [PATCH 2/2] Move axis command after plot in graph_decomp for not overriding it --- matlab/graph_decomp.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/graph_decomp.m b/matlab/graph_decomp.m index f69c8d833..33240cf6e 100644 --- a/matlab/graph_decomp.m +++ b/matlab/graph_decomp.m @@ -41,8 +41,8 @@ for j=1:nvar end fhandle = dyn_figure(DynareOptions,'Name',['Shock decomposition: ',endo_names(i_var(j),:)]); ax=axes('Position',[0.1 0.1 0.6 0.8]); - axis(ax,[xmin xmax ymin ymax]); plot(ax,x(2:end),z1(end,:),'k-','LineWidth',2) + axis(ax,[xmin xmax ymin ymax]); hold on; for i=1:gend i_1 = i-1;