Problem with SPM12 on MATLAB R2021a
59 次查看(过去 30 天)
显示 更早的评论
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 个评论
Oli_ee
2021-9-6
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.
回答(2 个)
Idil Gemici
2022-11-1
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 个评论
Daina Crafa
2023-5-22
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
2021-5-25
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!