Skip to content
Snippets Groups Projects
Verified Commit ae5dbdee authored by Houtan Bastani's avatar Houtan Bastani
Browse files

gui: no need to specify indices

parent 19cc08b7
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ jm = loadjson(json, 'SimplifyCell', 0); ...@@ -47,7 +47,7 @@ jm = loadjson(json, 'SimplifyCell', 0);
%% INITVAL instructions %% INITVAL instructions
% initialize exogenous shocks to zero and compute initial steady state % initialize exogenous shocks to zero and compute initial steady state
options_.initval_file = 0; options_.initval_file = 0;
oo_.exo_steady_state(1:jm.exonum) = 0; oo_.exo_steady_state(:, 1) = 0;
if M_.exo_nbr > 0 if M_.exo_nbr > 0
oo_.exo_simul = ones(M_.maximum_lag,1)*oo_.exo_steady_state'; oo_.exo_simul = ones(M_.maximum_lag,1)*oo_.exo_steady_state';
end end
...@@ -65,7 +65,7 @@ end ...@@ -65,7 +65,7 @@ end
ys0_= oo_.steady_state; ys0_= oo_.steady_state;
ex0_ = oo_.exo_steady_state; ex0_ = oo_.exo_steady_state;
if jm.permanentshockexist == 0 if jm.permanentshockexist == 0
oo_.exo_steady_state(1:jm.exonum) = 0; oo_.exo_steady_state(:, 1) = 0;
else else
for exoiter = 1:length(jm.permanentshocksdescription) for exoiter = 1:length(jm.permanentshocksdescription)
currentshock = jm.permanentshocksdescription(exoiter); currentshock = jm.permanentshocksdescription(exoiter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment