If the spm_realign function is called so that output arguments are to be
assigned, then it does not write any rp_*.txt file. If you want such a file,
then try pasting the following into MATLAB:
V = spm_vol(spm_select(Inf,'image'));
fname = [spm_str_manip(prepend(V(1).fname,'rp_'),'s') '.txt'];
n = length(V);
Q = zeros(n,6);
qq = spm_imatrix(V(j).mat/V(1).mat);
Q(j,:) = qq(1:6);
On Thursday 12 June 2008 19:30, Ben Yerys wrote:
> Hi SPMers:
> I would like to use an individual realignment parameters as regressors in
> my individual fMRI maps, however when I am setting up the batch script I do
> not find the rp_*.txt file in my subject's directory. This was not the
> case in the earlier version of SPM5 that I was using. Is this a new bug?
> Or do others have codes to work around this issue?
> Benjamin E. Yerys, Ph.D.
> T-32 IDDRC Post-Doctoral Fellow
> Children's National Medical Center