Problem Running any GUI

1 回表示 (過去 30 日間)
Edu
Edu 2014 年 11 月 26 日
回答済み: Doug Hull 2014 年 11 月 26 日
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:
. .
It also works if I Run it from the *.m file:
. . 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??
..
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!

回答 (1 件)

Doug Hull
Doug Hull 2014 年 11 月 26 日
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.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by