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

25 次查看(过去 30 天)
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

采纳的回答

Yannick
Yannick 2022-7-8
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by