Issues with SPM12 and MATLABR2024a
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 4 Août 2025
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.
Angeliki
le 5 Août 2025
Walter Roberson
le 5 Août 2025
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.
shantanu
le 12 Août 2025
Hi @Angeliki
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.
Angeliki
le 12 Août 2025
Réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!