From 0622f01f4efacc39de3cc1715e42780b571f5334 Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@ec.europa.eu>
Date: Fri, 18 Nov 2022 11:56:42 +0100
Subject: [PATCH] filter out t=1 when storing aalphahat and eetahat

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

diff --git a/matlab/missing_DiffuseKalmanSmootherH3_Z.m b/matlab/missing_DiffuseKalmanSmootherH3_Z.m
index b8fcd416c9..179b28377d 100644
--- a/matlab/missing_DiffuseKalmanSmootherH3_Z.m
+++ b/matlab/missing_DiffuseKalmanSmootherH3_Z.m
@@ -387,7 +387,7 @@ while notsteady && t<smpl
             return
         end
 
-        if smoother_redux
+        if smoother_redux && t>1
             aalphahat(:,t-1) = aha(:,1);
             eetahat(:,t) = etaha(:,2);
         end
-- 
GitLab