Commit 9b9eb4e0 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

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

parent bf856146
......@@ -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
\ No newline at end of file
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment