Fix thos code:Error using spm_check_installation>check_basic (line 93) You do not appear to have the function 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 addpath command in MATLAB to set it up: addpath('C:\Users\abolt\Documents\MATLAB\spm12\spm12') For more information, type the following: help path help pathtool Error in spm_check_installation (line 28) check_basic; Error in spm (line 317) spm_check_installation('basic');

Respuesta :

Answer:

addpath C:\Program Files\MATLAB\ToolBoxes-20181106T221851Z-001\ToolBoxes\SPM\spm12

savepath

Explanation:

The error clearly indicates that the SPM is missing and is not properly installed. In order to correct this, the following commands are required to be run in the command line of the MATLAB.

These commands will do following.

The first command is the addpath, this will add the path of the toolboxes in the working directory path of the MATLAB

addpath C:\Program Files\MATLAB\ToolBoxes-20181106T221851Z-001\ToolBoxes\SPM\spm12

The second command is the savepath, this will save the additional added path of the working directory for future use.

savepath