Problem with SPM12 on MATLAB R2021a

조회 수: 67 (최근 30일)
Sarah Serifovski
Sarah Serifovski 2021년 4월 3일
댓글: Daina Crafa 2023년 5월 22일
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
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
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
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
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.
  댓글 수: 1
Sarah Serifovski
Sarah Serifovski 2021년 5월 26일
I'm still having trouble with this atm, I've also been advised to re-install it, so I will try and see how it goes.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Manage Products에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by