File Exchange

image thumbnail


version (2.23 KB) by Todd Pataky
setSPMversion allows the user to toggle SPM versions without exiting matlab or manually adjusting th

1 Download

Updated 19 Jun 2006

No License

setSPMversion(vers) sets the SPM version to VERS, where VERS is either 99, 2, or 5 (only these three versions currently supported)

1. The user must specify the directories in this function. Refer to the commented code in setSPMversion.m at the bookmark: "BEGIN USER INPUT".

2. Although other SPM versions' directories are removed from the path, this function does not affect defualt settings; path changes are reverted after quitting MATLAB.

Tested on PC and UNIX, MATLAB R13 and R14

Cite As

Todd Pataky (2020). setSPMversion (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Yagoob Moallem

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux