user@host >
spm
The institute provides a way to safely choose an arbitrary combination of Matlab and SPM. You'll have to select your favorite SPM version first. Find available versions via
user@host >
SPM --versions
and select it e.g. via
user@host >
SPM --version 12.4711
The prompt will inform about the latest software version selection:
spm=12.4711_user@host >
Now look for available Matlab releases:
user@host >
MATLAB --version
Select the Matlab release like this:
spm=12.4711_user@host >
MATLAB --version 9.8
And run the Matlab GUI after that:
matlab=9.8_user@host >
matlab
Hints: 2020a
aren't Matlab versions numbers but marketing labels. The correct version number is 9.8
in this case.
user@host >
SPM --version 12.4711 MATLAB --version 9.8 matlab -r 'my_matlab_command'
/a/envwrap SPM MATLAB matlab -nodesktop -sd '/data/pt_12345/matlab/scripts -r 'my_script'
Make sure to have this command in your script to suppress graphical output:
spm_get_defaults("cmdline",true)
user@host >
make-spm-private
https://userportal.cbs.mpg.de/storageunified/request/user
. The script will tell you the commands necessary to run Matlab accessing the private SPM folder.
The SPM installation is going to create a collection of links pointing to files in a central location.