From f70408e29346f76c64f96b202852103df43c02c2 Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@mjui.fr>
Date: Thu, 10 Mar 2011 11:18:41 +0100
Subject: [PATCH] bug correction for dr.nspred when a variable is both backward
 and forward (bug introduced in changeset
 32c997f1ef7cc6b8f8a156f012f78c64b4f25234 02/25/11)

---
 matlab/set_state_space.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/set_state_space.m b/matlab/set_state_space.m
index 00fa0d66f2..02705a8933 100644
--- a/matlab/set_state_space.m
+++ b/matlab/set_state_space.m
@@ -112,6 +112,6 @@ dr.nfwrd = nfwrd;
 % number of forward variables in the state vector
 dr.nsfwrd = nfwrd;
 % number of predetermined variables in the state vector
-dr.nspred = npred;
+dr.nspred = npred+nboth;
 
 dr.transition_auxiliary_variables = [];
-- 
GitLab