Problem Running any GUI
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello people,
I have a problem. I create a GUI and if I Run the *.fig from the panel of the GUIDE it works well:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146230/image.png)
. .
It also works if I Run it from the *.m file:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146231/image.png)
. . but not when I click from the Current Folder. The GUI is opened but when I click any buttom doesn't work. Is it normal??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146232/image.png)
..
This is the error message I get:
_Attempt to reference field of non-structure array.
Error in prova2>rect_pul_but_Callback (line 142) cla(handles.axes1); %clear axes
Error in gui_mainfcn (line 96) feval(varargin{:});
Error in prova2 (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)prova2('rect_pul_but_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback_
Thanks a lot!
0 Kommentare
Antworten (1)
Doug Hull
am 26 Nov. 2014
In the third way, you shoulr right click to "open in GUIDE" or run the .M file. The .Fig files of a GUIDE file are not really meant to be opened like other .Fig files.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!