From 1a75a84cd462762cb2c9e663a9ebd4e96467c4aa Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Mon, 21 Dec 2009 09:23:19 +0000
Subject: [PATCH] 4.1 branch: merged r3274 (fixed bug in sim1.m for
 options_.terminal_condition == 1)

git-svn-id: https://www.dynare.org/svn/dynare/branches/4.1@3277 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 matlab/sim1.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/sim1.m b/matlab/sim1.m
index 70f4583ee4..85ce76b52f 100644
--- a/matlab/sim1.m
+++ b/matlab/sim1.m
@@ -88,7 +88,7 @@ for iter = 1:options_.maxit_
         s = eye(ny) ;
         s(:,isf) = s(:,isf)+c(ic,1:nyf) ;
         ic = ic + ny ;
-        c(ic,nrc) = s\c(:,nrc) ;
+        c(ic,nrc) = s\c(ic,nrc) ;
         c = bksup1(ny,nrc) ;
         c = reshape(c,ny,options_.periods+1) ;
         oo_.endo_simul(:,it_init+(0:options_.periods)) = oo_.endo_simul(:,it_init+(0:options_.periods))+options_.slowc*c ;
-- 
GitLab