From 510bbe200e0748700c09780dd5eaa95231df1135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Fri, 17 Mar 2017 15:09:05 +0100 Subject: [PATCH] Bug fix (wrong number of output arguments when calling evaluate_smoother). --- matlab/realtime_shock_decomposition.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/realtime_shock_decomposition.m b/matlab/realtime_shock_decomposition.m index 84952fab7..96d72bf18 100644 --- a/matlab/realtime_shock_decomposition.m +++ b/matlab/realtime_shock_decomposition.m @@ -106,7 +106,7 @@ for j=presample+1:nobs, % evalin('base',['options_.nobs=' int2str(j) ';']) options_.nobs=j; clear('evaluate_smoother'); - [oo,junk1,junk2,Smoothed_Variables_deviation_from_mean] = evaluate_smoother(parameter_set,varlist,M_,oo_,options_,bayestopt_,estim_params_); + [oo, junk1, junk2, junk3, Smoothed_Variables_deviation_from_mean] = evaluate_smoother(parameter_set,varlist,M_,oo_,options_,bayestopt_,estim_params_); % reduced form dr = oo.dr; @@ -139,7 +139,7 @@ for j=presample+1:nobs, epsilon=[epsilon zeros(nshocks,forecast_)]; z = zeros(endo_nbr,nshocks+2,gend+forecast_); - + Smoothed_Variables_deviation_from_mean z(:,end,1:gend) = Smoothed_Variables_deviation_from_mean; maximum_lag = M_.maximum_lag;