SPM without Graphical Output edit

  • Start MATLAB with options:
    • -nodisplay -nosplash
    • -noFigureWindows on Windows platforms
  • Initialise SPM with the following:
spm('defaults','fmri');
spm_jobman('initcfg');
  • Enable the Command Line mode in your SPM scripts:
spm_get_defaults('cmdline',true);
  • Use Xvfb (X virtual framebuffer) on Linux platforms.