Merge pull request #1167 from JohannesPfeifer/shock_decomp_fix

Add missing deblank to fieldname setting in shock_decomposition.m
time-shift
MichelJuillard 2016-04-15 09:50:39 +02:00
commit a047b42dd3
1 changed files with 2 additions and 2 deletions

View File

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