Line 939:
if isfield(batch.Setup.subjects,'descrip'), CONN_x.Setup.l2covariates.descrip{nl2covariates}=batch.Setup.subjects.descrip{neffect};
The last variable, neffect, should be ngroup on this line (it looks like copy-paste error from later line 955)
if isfield(batch.Setup.subjects,'descrip'), CONN_x.Setup.l2covariates.descrip{nl2covariates}=batch.Setup.subjects.descrip{neffect};
The last variable, neffect, should be ngroup on this line (it looks like copy-paste error from later line 955)