Issues with SPM12 and MATLABR2024a

Hi all,
I have been trying to analyse my fMRI data using SPM12 implemented via MatlabR2024a.
I set the path with no problems but when I click to use Spm's GUI, this error appears:
Dot indexing is not supported for variables of this type.
Error in cfg_ui>local_showjob (line 302) set(findobj(handles.cfg_ui,'-regexp', 'Tag','.*(Del)|(Repl)Mod$'),'Enable','on');
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in cfg_ui (line 53) gui_mainfcn(gui_State, varargin{:});
Error in spm_jobman (line 216) cfg_ui('local_showjob', f, cjob);
Error using movegui (line 136) Error while evaluating UIControl Callback.
I have tried with many SPM versions as well as with Matlab2024b, 2023a, 2021a, 2022b. I have also experimented with different directories but none of the combinations has worked. I keep getting error messages and I am run out of ideas.
Any idea would be much appreciated.

5 Comments

This reminds me of the kind of problem you would encounter if you run a GUIDE gui by double-clicking on the .fig file instead of running the .m file. The .m file is responsible for creating key structures that are not defined when the .fig is double-clicked.
I'm not sure which step might be causing the issue. I set the path correctly and type spm fmri in the command window to launch SPM. Then, I click on the “Import” option from the SPM GUI. Since I’m not double-clicking any .fig file manually, I’m wondering if that earlier issue (regarding GUIDE GUIs) could still be relevant in this context. Could this kind of problem still occur when using the SPM GUI?
I would not expect it while using the spm gui by name.
I suggest putting in a breakpoint a local_showjob line 302, and running. When the code reaches that point, example the content of handles . I predict that it will be empty or numeric. An empty or numeric handles is unexpected, and it would be necessary to chase backwards to figure out how it got that way.
Could you provide script or provide more information regarding the section the error occurs in.
The error
"Dot Indexing is not supported for variables of this type"
followed by
"local_showjob (line 302) set(findobj(handles.cfg_ui,'-regexp', 'Tag','.*(Del)|(Repl)Mod$'),'Enable','on'); "
indicates that handles is not initialised properly or cfg_ui is not assigned correctly within handles.
Provide more details on how you started and reached the error.
Thank you for your response.
I’d like to let you know that I have resolved the issue.
I was getting this error when I double-clicked the ‘DICOM import’ button on SPM’s panel.
I realised that by clicking just once and waiting, the error message did not appear.

Sign in to comment.

Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products

Release

R2024a

Tags

Asked:

on 4 Aug 2025

Commented:

on 12 Aug 2025

Community Treasure Hunt

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

Start Hunting!