Commit 70e7564d authored by Spitzer's avatar Spitzer
Browse files

allocate for speed

parent 25d64761
......@@ -8,8 +8,9 @@ function [CP,Vitem]=modfunQP(a1,a2,eta,tauI,gam,lam,tauP,trials,FBtru)
ntrials=length(trials);
nstims=length(unique(trials));
% allocate trial-by-trial matrices
% allocate
Vitem=NaN(nstims,ntrials); % item values (8 x ntrials)
CP=NaN(1,ntrials);
for i=1:length(trials)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment