Problem with GUIDE based app and R2015a
Mostrar comentarios más antiguos
We have a GUIDE based application that required some work to get functional again with 2014b. Now with 2015a I'm getting the errors below on startup in the main GUIDE function. If I try to open the .fig file it hangs with most but not all of the [complex] dialog displayed. I've searched but can't find anything relevant.
The error message is
Undefined variable "matlab" or class "matlab.settings.Group".
Error in settings (line 35)
group = matlab.settings.Group(s, 'session');
Error in ligoDV_ligoDV_OpeningFcn (line 79)
setappdata(handles.main, 'settings', settings);
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in ligoDV (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in ligoDV_start (line 164)
ligoDV;
ligoDV is the name of the app.
Any clues on how to figure this out would be greatly appreciated.
3 comentarios
Francesco Piccolo
el 27 de Ag. de 2020
Hi,
I have the same problem. I changed the name of the file settings.m into Fra_settings, but the problem persist.
Undefined variable "matlab" or class "matlab.settings.Group".
Error in Fra_settings (line 35)
group = matlab.settings.Group(s, 'session');
Error in evalSPT>loadData (line 907)
v.settings = Fra_settings;%Changed from settings
Error while evaluating UIControl Callback
What am I doing wrong? Please suggest what to do.
Thanks
Image Analyst
el 28 de Ag. de 2020
Francesco Piccolo
el 28 de Ag. de 2020
Hi, please find attached the an example of the data and the code that is gvivng me the error.
Thanks
Respuesta aceptada
Más respuestas (2)
Vinod Sudheesh
el 8 de Jun. de 2015
Hi Joseph,
How are you launching your MATLAB App?. Are you observing this error even when launching the App from the command line by executing the following command?
ligoDV
2 comentarios
Joseph Areeda
el 8 de Jun. de 2015
Walter Roberson
el 8 de Jun. de 2015
I have not see a "matlab.settings.Group" before. Could we see the couple of lines before that?
Image Analyst
el 3 de Sept. de 2015
0 votos
You forgot to attach the m-file, or even the openingFcn() function. Why do you think you should have a structure or class called matlab? I don't. Most likely you created it somehow, like by running some lines of code in your startup.m file or somewhere and this code expected it to be in the local workspace somehow. If you put the cursor in matlab and type control-D, does it send you anywhere (probably not)?
Go to your old installation that works, and run the Dependency Report on your code and see where this "matlab" comes from. Then bring that file over to your new installation.
1 comentario
Joseph Areeda
el 4 de Sept. de 2015
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!