Last modified on 13 August 2013, at 12:02

SPM/Headless


SPM without Graphical OutputEdit

  • 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.