Problem with SPM12 on MATLAB R2021a

55 visualizaciones (últimos 30 días)
Sarah Serifovski
Sarah Serifovski el 3 de Abr. de 2021
Comentada: Daina Crafa el 22 de Mayo de 2023
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 comentarios
Oli_ee
Oli_ee el 6 de Sept. de 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.

Iniciar sesión para comentar.

Respuestas (2)

Idil Gemici
Idil Gemici el 1 de Nov. de 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 comentario
Daina Crafa
Daina Crafa el 22 de Mayo de 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.

Iniciar sesión para comentar.


kmiller
kmiller el 25 de Mayo de 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.
  1 comentario
Sarah Serifovski
Sarah Serifovski el 26 de Mayo de 2021
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by