Commit b3bcd2c8 authored by Marco Ratto's avatar Marco Ratto Committed by Stéphane Adjemian (Charybdis)

bug fixes: wrong name of field fig_name and properly using user defined fig_name

parent 5e7256da
...@@ -128,6 +128,11 @@ M_.exo_nbr = M_.endo_nbr; ...@@ -128,6 +128,11 @@ M_.exo_nbr = M_.endo_nbr;
options_.plot_shock_decomp.realtime=0; options_.plot_shock_decomp.realtime=0;
options_.plot_shock_decomp.screen_shocks=1; options_.plot_shock_decomp.screen_shocks=1;
options_.plot_shock_decomp.use_shock_groups = ''; options_.plot_shock_decomp.use_shock_groups = '';
options_.plot_shock_decomp.fig_names='initval'; fig_name = options_.plot_shock_decomp.fig_name;
plot_shock_decomposition(M_, oo, options_, varlist); if ~isempty(fig_name)
options_.plot_shock_decomp.fig_name=[fig_name '_initval'];
% end % end
\ No newline at end of file
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