Add missing deblank to fieldname setting in shock_decomposition.m

time-shift
Johannes Pfeifer 2016-04-15 09:41:38 +02:00
parent 010b28e237
commit c509f6d463
1 changed files with 2 additions and 2 deletions

View File

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