Initialize epsilon in shock_decomposition.m

time-shift
Johannes Pfeifer 2013-12-30 13:54:48 +01:00
parent a5a189475e
commit 24dcfcb901
1 changed files with 2 additions and 1 deletions

View File

@ -76,10 +76,11 @@ A = dr.ghx;
B = dr.ghu;
% initialization
gend = eval(['size(oo.SmoothedShocks.' M_.exo_names(1,:),',1)']);
epsilon=NaN(nshocks,gend);
for i=1:nshocks
epsilon(i,:) = eval(['oo.SmoothedShocks.' M_.exo_names(i,:)]);
end
gend = size(epsilon,2);
z = zeros(endo_nbr,nshocks+2,gend);
for i=1:endo_nbr