From 4580290dae65e6af16c3bce1e5aa73fab0163816 Mon Sep 17 00:00:00 2001 From: adjemian <adjemian@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Mon, 1 Sep 2008 10:13:10 +0000 Subject: [PATCH] Bug correction related to initialization of deterministic simulations (i forgot to commit this file). git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2011 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/steady.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/matlab/steady.m b/matlab/steady.m index b9031265f4..4272e0fc57 100644 --- a/matlab/steady.m +++ b/matlab/steady.m @@ -60,11 +60,12 @@ function steady() disp(sprintf('%s \t\t %g',endo_names(i,:),steady_state(i))); end + + if isempty(ys0_) + oo_.endo_simul(:,1:M_.maximum_lag) = oo_.steady_state * ones(1, M_.maximum_lag); %%% Unless I'm wrong, this is (should be?) done in make_y_.m -% $$$ if isempty(ys0_) -% $$$ oo_.endo_simul(:,1:M_.maximum_lag) = oo_.steady_state * ones(1, M_.maximum_lag); % $$$ else % $$$ options_ =set_default_option(options_,'periods',1); % $$$ oo_.endo_simul(:,M_.maximum_lag+1:M_.maximum_lag+options_.periods+ ... % $$$ M_.maximum_lead) = oo_.steady_state * ones(1,options_.periods+M_.maximum_lead); -% $$$ end \ No newline at end of file + end \ No newline at end of file -- GitLab