Dear Erica,
as you can see in the error message, the SPM8 function spm_write_vol.m
is overshadowed by an older version from the marsbar toolbox. I would
assume that this will be resolved if you download and install the latest
version of the toolbox from:
http://marsbar.sourceforge.net/download.html
Also the latest version of SPM8 includes a tool that attempts at
detecting this kind of situation, see:
>> spm_check_installation full
Best regards,
Guillaume.
Erica Julson wrote:
> I am new to using fieldmaps, and I attempted to use the 'Presubtracted Phase
> and Magnitude Data' module in SPM8 but am getting the following error
> message:
>
> Running 'Presubtracted Phase and Magnitude Data'
> Failed 'Presubtracted Phase and Magnitude Data'
> Attempted to access V.dim(4); index out of bounds because numel(V.dim)=3.
> In
> file "/fmritools/matlab/toolbox/spm8/toolbox/marsbar/spm99/spm_write_vol.m"
> (???), function "spm_write_vol" at line 22.
> In file "/fmritools/matlab/toolbox/spm8/toolbox/FieldMap/FieldMap.m" (v3016),
> function "FieldMap" at line 1708.
> In file "/fmritools/matlab/toolbox/spm8/toolbox/FieldMap/FieldMap.m" (v3016),
> function "FieldMap" at line 1487.
> In file "/fmritools/matlab/toolbox/spm8/toolbox/FieldMap/FieldMap_Run.m"
> (v3085), function "FieldMap_Run" at line 84.
> In file "/fmritools/matlab/toolbox/spm8/toolbox/FieldMap/tbx_cfg_fieldmap.m"
> (v3085), function "fieldmap_presubphasemag" at line 603.
>
> It seems like the error means I am trying to use 4D files but the program wants
> 3D? But as far as I can tell all my files are 3D except for the 'EPI to Unwarp'
> where I selected the first TR of the first run.
>
> Any thoughts on how to prevent this error message?
>
> Thanks!
>
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|