irf_shocks bug fix in stoch_simul (Thanks to J. Pfeifer for pointing this out)

time-shift
Houtan Bastani 2011-07-07 15:31:46 +02:00
parent bf85614668
commit 9b9eb4e078
1 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,6 @@ if (isfield(options_,'irf_shocks')==0)
else
irf_shocks_indx = zeros(1,size(options_.irf_shocks,1));
for i=1:size(options_.irf_shocks,1)
irf_shocks_indx(i) = find(M_.exo_names==options_.irf_shocks(i));
irf_shocks_indx(i) = find(strcmp(deblank(options_.irf_shocks(i,:)), cellstr(M_.exo_names)));
end
end
end