> Question 1:
>
> I am trying to estimate a model on a set of fMRI images which I have
> reoriented and realigned - any way, I think so since all the .mat files
> seem to be there, and I can bring up any of the scans in DISPLAY and they
> look to be correctly oriented. However, when I try to estimate the
> model, in the startup window, I get:
>
> Mapping files ....done
> ??? Error while evaluating uicontrol Callback.
>
> and then it just sits doing ??? until I hit return in the startup window.
> I then get
>
> >> ??? Error using ==> spm_fmri_spm_ui
>
> images do not all have same orientation or voxel size.
Make sure that the images are all the same size, have the same voxel sizes and
origins, and if they have .mat files associated with them, that these are all identical.
A possible reason is that the images have been realigned but not actually resliced, or
you have spatially normalised some of your images with different bounding boxes
or voxel sizes. Most modules in SPM can cope with images that are in different
orientations (as reflected by their .mat files), but the statistics module needs all the
voxels in the images to be matched.
> Question 2:
>
> Is there anyway to get the processing files put into the individial users
> working directory instead of the spm directory with all the matlab
> routines. We would prefer that directory be protected.
You can write the data wherever you want. You do not need to run SPM from within
the spm directory with all the matlab routines, providing that Matlab knows which directory
to search for them. You can use the editpath command to do this from within Matlab.
Alternatively, you can set up the environmental variable MATLABPATH in the appropriate
startup file (e.g., your .cshrc file if you use the C-shell). You could also have a startup.m
in a matlab subdirectory of your home directory that contains a modified version of the
following line:
path('the directory where you keep spm',path)
Best regards,
-John
--
Dr John Ashburner.
Functional Imaging Lab., 12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420 http://www.fil.ion.ucl.ac.uk/~john
|