SPM/Installation on Windows

< SPM

Preamble

Installing SPM on Windows 32 bit (XP, Vista, 7) should be relatively straightforward. Common pitfalls can be found in the description of the 64bit Windows installation.

SPM12

Installation

>> addpath C:\Users\login\Documents\MATLAB\spm12

in MATLAB's workspace.

>> spm

You might have to install the VC++ 2005 and 2008 Redistributable Packages (vcredist_x86.exe) from Microsoft:

Update

If you have just downloaded the spm12.zip archive, it already contains the latest set of updates. To update SPM when a new version is released:

Alternatively, you can use the spm_update.m function:

>> spm_update

If a new version is available, it can be applied to your local installation by typing:

>> spm_update update

Compilation

Precompiled MEX files (*.mexw32) are provided with SPM12 and you shouldn't need to recompile them by yourself.

SPM8

Installation

>> addpath C:\spm\spm8

in MATLAB's workspace.

>> spm

Compilation

Precompiled MEX files (*.mexw32) are provided with SPM8 and you shouldn't need to recompile them by yourself.

See Compilation of SPM8 MEX files on Windows if needed.

SPM5

Installation

>> addpath C:\spm\spm5

in MATLAB's workspace.

>> spm

Compilation

Precompiled MEX files (*.mexw32) are provided with SPM5 and you shouldn't need to recompile them by yourself.

See Compilation of SPM5 MEX files on Windows if needed.

SPM2

Installation

>> addpath C:\spm\spm2

in MATLAB's workspace.

>> spm

Compilation

Precompiled MEX files (*.mexw32) are provided with SPM2 and you shouldn't need to recompile them by yourself.

See Compilation of SPM2 MEX files on Windows.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.