Problem with SPM12 on MATLAB R2021a

59 ビュー (過去 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 件のコメント
Walter Roberson
Walter Roberson 2021 年 4 月 3 日
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 Center および File ExchangeGraphics Object Programming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by