Hi Doug et al.,
It appears I've encountered this problem once before:
https://mail.nmr.mgh.harvard.edu/pipermail//freesurfer/2016-February/043647....
Unfortunately there is no record of any resolution (if there was one) in the original thread, and I have no recollection of what the outcome was. Where the thread did leave off was a request for the Xtmp.mat file, so I will include the Xtmp.mat file from the analysis that worked (GoodXtmp.mat) and the one that failed (BadXtmp.mat).
The error message:
Creating Design Matrix ... creation time = 0.019 sec DoMCFit = 1 ntptot = 2592, nX = 81, DOF = 2511 Saving X matrix to /home/chris/SEM/FS_0231/bold/FAM.self.sm4.down.rh/Xtmp.mat Error using svd Input to SVD must not contain NaN or Inf. Error in cond (line 35) s = svd(A); Error in fast_selxavg3 (line 279) XCond = cond(XtX);
Curiously, unless something was overlooked, the same analysis was carried out on another dataset that went through the same preprocessing steps without incident.
The Xn matrix in BadXtmp.mat contains 3 columns of NaN (:,[7,8,9]), but without knowing how those values are calculated, I can't take a principled stab at fixing the problem.
Thanks for your help,
Chris
freesurfer@nmr.mgh.harvard.edu