It looks to me as if you have been running one version of SPM in
MATLAB and then running another. The file_array class changed
slightly between versions (with the addition of a read-only option),
so you will need to exit MATLAB and start it up again for things to
work.
Best regards,
-John
2011/10/24 飞鸟 <[log in to unmask]>:
> Dear spm's users,
> I followed the steps in spm8_4290's manual in "VII Data sets and
> examples>Dynamic casual modeling for fMRI>Practical example (Page 304)", but
> I got an error information in "Defining the GLM" when I started to run the
> batch:
>
> ------------------------------------------------------------------------
> Running job #1
> ------------------------------------------------------------------------
> Running 'fMRI model specification'
>
> SPM8: spm_fMRI_design (v4185) 20:52:05 - 24/10/2011
> ========================================================================
> Saving fMRI design : ...SPM.mat saved
>
> SPM8: spm_fmri_spm_ui (v4178) 20:52:05 - 24/10/2011
> ========================================================================
> Mapping files : Failed 'fMRI model specification'
> Error using ==> class
> Cannot change the number of fields of class 'file_array' without first
> typing 'clear classes'.
> In file "D:\Program
> Files\MATLAB\mytoolbox\spm_4290\@file_array\file_array.m" (v4136), function
> "file_array" at line 21.
> In file "D:\Program
> Files\MATLAB\mytoolbox\spm_4290\@file_array\file_array.m" (v4136), function
> "file_array" at line 41.
> In file "D:\Program Files\MATLAB\mytoolbox\spm_4290\@nifti\nifti.m" (v4270),
> function "nifti" at line 70.
> In file "D:\Program Files\MATLAB\mytoolbox\spm_4290\spm_vol_nifti.m"
> (v1143), function "spm_vol_nifti" at line 16.
> In file "D:\Program Files\MATLAB\mytoolbox\spm_4290\spm_vol.m" (v4045),
> function "subfunc" at line 124.
> In file "D:\Program Files\MATLAB\mytoolbox\spm_4290\spm_vol.m" (v4045),
> function "subfunc1" at line 77.
> In file "D:\Program Files\MATLAB\mytoolbox\spm_4290\spm_vol.m" (v4045),
> function "subfunc2" at line 69.
> In file "D:\Program Files\MATLAB\mytoolbox\spm_4290\spm_vol.m" (v4045),
> function "spm_vol" at line 54.
> In file "D:\Program Files\MATLAB\mytoolbox\spm_4290\spm_fmri_spm_ui.m"
> (v4178), function "spm_fmri_spm_ui" at line 368.
> In file "D:\Program
> Files\MATLAB\mytoolbox\spm_4290\config\spm_run_fmri_spec.m" (v4185),
> function "spm_run_fmri_spec" at line 301.
>
> No executable modules, but still unresolved dependencies or incomplete
> module inputs.
> The following modules did not run:
> Failed: fMRI model specification
> Skipped: Model estimation
>
> Does anybody know how to deal with it ? Any help would be greatly
> appreciated!
> PS: I used matlab 2009a and spm8_4290.
> --
> Haoran LI (MS)
> Brain Imaging Lab,
> Research Center for Learning Science,
> Southeast University
> 2 Si Pai Lou , Nanjing, 210096, P.R.China
>
>
|