Dear Sheng,
this will happen if the image files listed in the SPM.mat cannot be
found (eg because you moved them in another folder). In this case, SPM
will try to find them recursively in subfolders of your current
directory, which (i) can take some time, as you experienced it, and (2)
can fail. To see what are the missing files, type:
>> load SPM.mat
>> SPM.xY.P
I understand it's rather annoying, especially if you don't do any plots
(which require the 'raw' data), so you can safely comment out the line:
try, SPM.xY.VY = spm_check_filename(SPM.xY.VY); end
that you should find in spm_getSPM.m around line 246.
All the best,
Guillaume.
zhang sheng wrote:
> Dear all,
>
> When I used SPM8 to get the results. After I clicked the results button,
> it took a very long time.
> It may because the system automatically added all the path under this
> hard disk, as I saw a lot of new paths appeared in the matlab search path.
> e.g., if the spm.mat is under D:, then almost all possible paths under
> D: will be added to the matlab search path.
>
> I think the used functions are:
> In path at 110
> In addpath at 87
> In spm_check_filename>spm_which_filename at 64
> In spm_check_filename at 42
> In spm_getSPM at 246
> In spm_results_ui at 277
>
> Does anyone know what happened here?
>
> Thanks,
> Sheng
>
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|