From 1143c1ce7fb3bb2329e7dce24c52e9339dd52980 Mon Sep 17 00:00:00 2001 From: tzehuik <47514614+tzehuik@users.noreply.github.com> Date: Wed, 19 Oct 2022 16:18:58 -0400 Subject: [PATCH] Fixed bug (changed NTrial to N_TRIAL) --- core_lds/lds_initializefa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core_lds/lds_initializefa.m b/core_lds/lds_initializefa.m index 62f5514..36c5ab5 100644 --- a/core_lds/lds_initializefa.m +++ b/core_lds/lds_initializefa.m @@ -42,7 +42,7 @@ Z_fa(iTrial).zcurr = FA_result.mean(:,2:end); Z_fa(iTrial).zprev = FA_result.mean(:,1:end-1); Z_fa(iTrial).zall = FA_result.mean; - if NTrial == 1 + if N_TRIAL == 1 z_1 = FA_result.mean(:,1:20)'; % we need enough datapoints to estimate covariance, so we take the first 20 since we don't have trials else z_1(iTrial,:) = FA_result.mean(:,1)';