Dear Sanaz,
the SPM batch system and the various extension mechanisms (toolboxes, spm_orthviews, fieldtrip...) require more knowledge than just compiling spm.m as a target function. SPM comes with a MATLAB .m-file spm_make_standalone.m that will take care of the necessary steps to compile SPM from within MATLAB. You should give it a try on your SPM installation. If you want to customize your standalone SPM (by e.g. adding extra toolboxes etc) you may need to make some changes to the code.
Hope this helps
Volkmar
|