Can't get demo working: Error using SPM12 "Unrecognized function or variable 'spm_get_defaults'."

39 views (last 30 days)
I'm using SPM12 with R2022a and want to run the FEP_Manifold Demo from the "Life as we know it" paper.
I get the error: Unrecognized function or variable 'spm_get_defaults'. when running
run toolbox\DEM\FEP_Manifold.m
from the spm12 folder.
The error message looks like this:
Unrecognized function or variable 'spm_get_defaults'.
Error in spm_figure (line 694)
'Renderer',spm_get_defaults('renderer'),...
Error in spm_figure (line 175)
F = spm_figure('CreateWin',Tag,Name,Visible);
Error in spm_figure (line 241)
F = spm_figure('Create',Tag,Tag);
Error in FEP_Manifold (line 66)
spm_figure('GetWin','Dynamics');clf
Error in run (line 91)
evalin('caller', strcat(script, ';'));
The path pointing to spm12 in the Documents\MATLAB folder is at the top of the list.
My OS is Windows 11.
Any further tips to get the demo working?
Also i'm a beginner with matlab
Greetings Yannick

Accepted Answer

Yannick
Yannick on 8 Jul 2022
Somehow the actual file was missing and everything i needed to do was get the spm_get_defaults.m file from github.
I wasn't expecting the file to just be missing but that was what solved it

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!