Problem with SPM12

23 views (last 30 days)
Dell
Dell on 7 Nov 2018
Answered: Weiqing on 9 Apr 2025
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');

Accepted Answer

Walter Roberson
Walter Roberson on 7 Nov 2018
Give the command
addpath C:\Program Files\MATLAB\ToolBoxes-20181106T221851Z-001\ToolBoxes\SPM\spm12
savepath
  2 Comments
Dell
Dell on 7 Nov 2018
I give this command in matlab??
Dell
Dell on 7 Nov 2018
I do it thank you

Sign in to comment.

More Answers (4)

Dell
Dell on 4 Dec 2018
Hello,
Please i have this message on matlab windows when i run specify 1st-level on SPM
Please how can i fix that
Running 'fMRI model specification'
Failed 'fMRI model specification'
Error using spm_run_fmri_spec (line 321)
Length of regressor is not commensurate with data points.
In file "C:\Program Files\MATLAB\ToolBoxes-20181106T221851Z-001\ToolBoxes\SPM\spm12\config\spm_run_fmri_spec.m" (v6372), function "spm_run_fmri_spec" at line 321.
The following modules did not run:
Failed: fMRI model specification
  3 Comments
rong
rong on 25 Nov 2022
Have u fix it? I met the same question.
rong
rong on 25 Nov 2022
During the analysis named GLM, and this is on the 39.2.1 SPM12 manual.

Sign in to comment.


Dell
Dell on 5 Dec 2018
I observe it when i running specify 1st level on SPM and on the batch editor i see fMRI
  1 Comment
Walter Roberson
Walter Roberson on 5 Dec 2018
It happens immediately after you click on "specify 1st level" ?

Sign in to comment.


Dell
Dell on 5 Dec 2018
No, when i running 'specify 1st level" on the batch editor.
And on the batch editor i have fMRI model specification

Weiqing
Weiqing on 9 Apr 2025
I meet the same problem too, do you fix it?

Categories

Find more on Neuroimaging in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!