Hi, it's simple question..
any hope to run .m file without using .fig file and GUI works fine ? OR should i have both ?

 채택된 답변

Geoff Hayes
Geoff Hayes 2016년 7월 23일

0 개 추천

Ahmed - if the GUI was created using GUIDE, then you need both the m file and the figure (.fig) file to be able to run the GUI.

댓글 수: 4

Ahmed Nabil
Ahmed Nabil 2016년 7월 23일
i downloaded the files from here
it was contain only .m files and was trying to figure out how i can run it without .fig
looks like this code for understanding only
i would be glad if there is anyway makes me able to run it :"|
Geoff Hayes
Geoff Hayes 2016년 7월 23일
Ahmed - this may be an exception. If you look at rhinoGUI_final.m, there is a gui_Layout function that creates the GUI controls. So you should be able to run rhinoGUI_final.m from the command line without the need of the figure.
ok, i tried to run it..
but gives me an error
Error using get
There is no Behavior property on the UIControl class.
Error in rhinoGui_final>rhinoGui_final_LayoutFcn (line 1509)
'Behavior',get(0,'defaultuicontrolBehavior'),...
Error in rhinoGui_final>gui_mainfcn (line 2469)
gui_hFigure = feval(gui_State.gui_LayoutFcn, gui_SingletonOpt);
Error in rhinoGui_final (line 42)
gui_mainfcn(gui_State, varargin{:});Error using get
There is no Behavior property on the UIControl class.
Error in rhinoGui_final>rhinoGui_final_LayoutFcn (line 1509)
'Behavior',get(0,'defaultuicontrolBehavior'),...
Error in rhinoGui_final>gui_mainfcn (line 2469)
gui_hFigure = feval(gui_State.gui_LayoutFcn, gui_SingletonOpt);
Error in rhinoGui_final (line 42)
gui_mainfcn(gui_State, varargin{:});
right click on the file and choose run..
or did i missed something ? am still beginner
p/s: using matlab 2016a
Geoff Hayes
Geoff Hayes 2016년 7월 23일
Perhaps the Behavior property has been removed from 2016a (I am using R2014a). You can try commenting out or deleting all the lines that refer to this property in the rhinoGui_final_LayoutFcn function.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2016년 7월 23일

댓글:

2016년 7월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by