MATLAB: Problem with SPM12

spm tools box

Hello,
Please i have this message when i open SPM tools box
Please how can i fix that.
Error using spm_check_installation>check_basic (line 66)
You do not appear to have the MATLAB search path set up
to include your SPM12 distribution. This means that you
can start SPM in this directory, but if your change to
another directory then MATLAB will be unable to find the
SPM functions. You can use the pathtool command in MATLAB
to set it up.
addpath C:\Program Files\MATLAB\ToolBoxes-20181106T221851Z-001\ToolBoxes\SPM\spm12
For more information, try typing the following:
help path
help pathtool
Error in spm_check_installation (line 28)
check_basic;
Error in spm (line 290)
spm_check_installation('basic');

Best Answer

Give the command
addpath C:\Program Files\MATLAB\ToolBoxes-20181106T221851Z-001\ToolBoxes\SPM\spm12
savepath
Related Question