From Wikibooks, open books for an open world
Jump to navigation Jump to search

Batch Scripts[edit | edit source]

See this Powerpoint presentation for an overview.

See the relevant chapter in the SPM manual.

For general comments on scripting with MATLAB and SPM see the programming intro.

Batch Script for SPM12[edit | edit source]

Any batch script should follow the template:


matlabbatch{1}.spm... = ...;


Batch Script for SPM8[edit | edit source]

SPM12's advices also apply to SPM8.

The Batch Scripts for SPM5 below can also be used in SPM8.

Batch Script for SPM5[edit | edit source]

Examples of script (for SPM5 and compatible with SPM8) are provided with the SPM Data Sets, for example:

See also:

Batch Script for SPM2[edit | edit source]

There is an example batch script written by Rik Henson, for a single subject fMRI data set (preprocessing and statistics).