Hello,
to execute spm_getSPM, the SPM defaults must have been loaded so you
need to do the following beforehand:
spm('defaults','fmri');
The same error message can appear if you do a 'clear all' while SPM is
already running.
I hope this helps,
Guillaume.
HR Kang wrote:
> Dear all,
>
> I've encountered a problem while I'm trying to get an xSPM struct from
> an existing SPM.mat, by using spm_getSPM.
> When I call spm_getSPM in MATLAB command line as follows,
>>> [SPM xSPM] = spm_getSPM
>
> and select an SPM.mat in the dialog box, it asks that
> 'This model has not been estimated. Would you like to estimate it now?'
>
> although it was already estimated. - I have re-checked it by opening it
> in the results window of SPM for fMRI.
> If I select 'yes', it shows an error like following:
>
> SPM5: spm_spm (v$Rev: 946 $) 21:40:18 - 18/02/2009
> ========================================================================
> ??? Error using ==> spm
> Unknown Modality
>
> Error in ==> spm_spm at 312
> if strcmp(spm('CheckModality'), 'EEG')
>
> Error in ==> spm_getSPM at 220
> [SPM] = spm_spm(SPM);
>
>
> and if I select 'no' in the dialog box, it then shows an error like this:
> ??? One or more output arguments not assigned during call to
> 'C:\spm5\spm_getSPM.m (spm_getSPM)'.
>
> How can I get an xSPM struct from an existing SPM.mat? I've read help
> part of spm_getSPM.m, but still cannot find the answer. I use SPM5 with
> update 1782.
>
> Thank you so much in advance.
>
> Sincerely,
> HR Kang.
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|