This function saves the residuals after regressing the user-defined noise variables from the user-defined "signal" variables. Noise variables can be nuisance regressors (such as cebral spinal fluid in fMRI), time vectors, or any other vector that the user wishes to regress out.
preproc(Y, noise, signal)
signalmatrix
data: Y = length*dim
string vector indicating which variables (columns) are regressors
string vector indicating which variables to regress out the noise variables from