From 291c087dbd17ddb28e8f8de0fa6bb6d7d296c59b Mon Sep 17 00:00:00 2001 From: michel <michel@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Sat, 7 Jan 2006 10:21:53 +0000 Subject: [PATCH] v3 steady.m: undo recent change: steady must set y_ with exact steady state git-svn-id: https://www.dynare.org/svn/dynare/dynare_v3@584 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/steady.m | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/matlab/steady.m b/matlab/steady.m index 03f609191..b134095e4 100644 --- a/matlab/steady.m +++ b/matlab/steady.m @@ -13,12 +13,14 @@ function steady(linear) disp(sprintf('%s \t\t %g',lgy_(i,:),ys_(i))); end -% if isempty(ys0_) -% y_(:,1:ykmin_) = ys_ * ones(1,ykmin_); -% else -% options_ =set_default_option(options_,'periods',1); -% y_(:,ykmin_+1:ykmin_+options_.periods+ykmax_) = ys_ * ones(1,options_.periods+ykmax_); -% end +% overwrites the initialization of y_ in case it was +% set by initval + if isempty(ys0_) + y_(:,1:ykmin_) = ys_ * ones(1,ykmin_); + else + options_ =set_default_option(options_,'periods',1); + y_(:,ykmin_+1:ykmin_+options_.periods+ykmax_) = ys_ * ones(1,options_.periods+ykmax_); + end % 06/24/01 MJ steady print results; steady_ doesn't % 09/22/01 FC corrected lgy(i,:) -- GitLab