Skip to content
Snippets Groups Projects
Commit 4c6b8039 authored by Marco Ratto's avatar Marco Ratto
Browse files

use optional variable list as fourth input argument, to complement automatic...

use optional variable list as fourth input argument, to complement automatic list based on options_.plot_shock_decomp.i_var.
parent 44eae130
No related branches found
No related tags found
1 merge request!1655utilities + plot shock decompositions + init condition decompositions
function [oo_,options_] = squeeze_shock_decomp(M_,oo_,options_,sd_vlist) function [oo_,options_] = squeeze_shock_decomp(M_,oo_,options_,var_list_)
if nargin==3 my_vars = options_.plot_shock_decomp.i_var;
% automatic selection from history of plot_shock_decomp if nargin>3
sd_vlist = M_.endo_names(options_.plot_shock_decomp.i_var); my_vars = [varlist_indices(var_list_,M_.endo_names); my_vars];
end end
sd_vlist = M_.endo_names(my_vars,:);
if isstruct(options_.plot_shock_decomp.q2a) if isstruct(options_.plot_shock_decomp.q2a)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment