Problem with SPM12 on MATLAB R2021a
55 views (last 30 days)
Show older comments
Hello,
Everytime I try to run spm12 on MATLAB, it opens and when I press fMRI I receive this error message.
What do I do to fix this?, I have a MacOS Big Sur version 11.2.3.
Initialising SPM : ..Error using cfg_getfile>reg_filter (line 1185)
Unrecognized function or variable 'cfg_branch'.
Error in cfg_getfile (line 177)
t = reg_filter(varargin{2:end});
Error in spm_select (line 115)
cfg_getfile('regfilter', 'mesh', {'\.gii$'});
Error in spm_select (line 110)
spm_select('regfilter');
Error in spm_select (line 97)
spm_select('init');
Error in spm_jobman (line 173)
spm_select('init');
Error in spm (line 335)
spm_jobman('initcfg'); fprintf('.');
Error while evaluating DestroyedObject Callback.
2 Comments
Oli_ee
on 6 Sep 2021
Hi, have you solve this problem? If so, would you please share your method? I use the same version of MATLAB and SPM on Mac OS Bigsur11.3.1, and I open the SPM successfuly but failed when I press the fmri button.
the error message is:
Unrecognized function or variable 'spm_Menu'.
Error in spm (line 488) Fmenu = spm_Menu('Create',varargin{2:end});
Error in spm (line 340) Fmenu = spm('CreateMenuWin','off'); fprintf('.');
Error while evaluating DestroyedObject Callback.
Answers (2)
Idil Gemici
on 1 Nov 2022
Hello,
I have recently seen the same error and I just wanted to comment the solution I have found in case it would help someone having the same problem. I dowloaded SPM and SPM updates and replaced the files in the SPM file (I am using SPM12). This gave me the error posted above. All it takes is to uninstall and reinstall SPM without having to download the updates (which are already included in spm12 download). Then it all works! (I am running MATLAB 2021a on Big Sur)
Hope it helps!
1 Comment
Daina Crafa
on 22 May 2023
Thank you so much for posting this fix, Idil Gemici! I was experiencing the same problem with Matlab 2023a on OS Ventura, and your solution worked for me!
In case this additional information helps anyone: I was actually trying to run spm_fnirs and the GUI was just closing when I clicked on any processing option. I discovered that spm12 was also crashing, and decided to resolve the issue with spm12 first. I used the above fix for spm12 (and took no other steps), and now spm_fnirs works too! So, for anyone having trouble with spm_fnirs crashing, check to see if spm is working properly. Issues with spm_fnirs could be caused by spm12.
kmiller
on 25 May 2021
Did you manage to get around this bug? I get it on Catalina with Matlab 9.8 too.
Reinstalled with updates, also ran the quarantine command on the Wiki. No success here.
See Also
Categories
Find more on Graphics Object Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!