Borrar filtros
Borrar filtros

run .m without .fig (GUI)

2 visualizaciones (últimos 30 días)
Ahmed Nabil
Ahmed Nabil el 23 de Jul. de 2016
Comentada: Geoff Hayes el 23 de Jul. de 2016
Hi, it's simple question..
any hope to run .m file without using .fig file and GUI works fine ? OR should i have both ?

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 23 de Jul. de 2016
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 comentarios
Ahmed Nabil
Ahmed Nabil el 23 de Jul. de 2016
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 el 23 de Jul. de 2016
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by