Skip to content

Commit

Permalink
Fixed bug (changed NTrial to N_TRIAL)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzehuik committed Oct 19, 2022
1 parent 9f069e3 commit 1143c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core_lds/lds_initializefa.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)';
Expand Down

0 comments on commit 1143c1c

Please sign in to comment.