From ae5dbdee9f352c7d5e17c15d92e8d717e33ddae2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 7 Feb 2019 12:13:08 +0100 Subject: [PATCH] gui: no need to specify indices --- matlab/+gui/+perfect_foresight/run.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/+gui/+perfect_foresight/run.m b/matlab/+gui/+perfect_foresight/run.m index 44bae0293..eef3ff73f 100644 --- a/matlab/+gui/+perfect_foresight/run.m +++ b/matlab/+gui/+perfect_foresight/run.m @@ -47,7 +47,7 @@ jm = loadjson(json, 'SimplifyCell', 0); %% INITVAL instructions % initialize exogenous shocks to zero and compute initial steady state options_.initval_file = 0; -oo_.exo_steady_state(1:jm.exonum) = 0; +oo_.exo_steady_state(:, 1) = 0; if M_.exo_nbr > 0 oo_.exo_simul = ones(M_.maximum_lag,1)*oo_.exo_steady_state'; end @@ -65,7 +65,7 @@ end ys0_= oo_.steady_state; ex0_ = oo_.exo_steady_state; if jm.permanentshockexist == 0 - oo_.exo_steady_state(1:jm.exonum) = 0; + oo_.exo_steady_state(:, 1) = 0; else for exoiter = 1:length(jm.permanentshocksdescription) currentshock = jm.permanentshocksdescription(exoiter);