From f0cef38950df70b5523849563c399725ab488345 Mon Sep 17 00:00:00 2001 From: JonKing93 Date: Fri, 30 Apr 2021 08:15:37 -0700 Subject: [PATCH] Fix time indexing for transient prior gains --- @kalmanFilter/run.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@kalmanFilter/run.m b/@kalmanFilter/run.m index ff88c496..243d6518 100644 --- a/@kalmanFilter/run.m +++ b/@kalmanFilter/run.m @@ -92,7 +92,7 @@ % Get the sites, time steps, priors, and R covariance associated with each gain for g = 1:numel(covGains) - t = times(whichGain == covGains(g)); + t = find(whichGain == covGains(g)); s = sites(:, t(1)); Rk = kf.Rcovariance(t(1), s);