...adding, I doubt it'd be hard to just directly code a replacement in the instance in spm_detrend.m. I assume the code in the previous version still works; only difference is
33,35c33
< for i = 1:n
< y(:,i) = x(:,i) - mean(x(:,i));
< end
---
> y = bsxfun(@minus, x, mean(x));
|