GUI : function GUI_calciu​mDynamics_​1_OpeningF​cn(hObject​, eventdata, handles, varargin)

2 次查看(过去 30 天)
Hello!
I'm following a video on creating a GUI with GUIDE ( http://www.mathworks.co.uk/videos/matlab/creating-a-gui-with-guide.html).
At 07:50 in the video, the speaker explains about generating or loading the data to be plotted. I'm trying to place a function call to my actual program here but this gives me an error I don't seem to understand.
The error is:
??? Error using ==> guidata at 89
H must be the handle to a figure or figure descendent.
Error in ==>
GUI_calciumDynamics_1>GUI_calciumDynamics_1_OpeningFcn at 80
guidata(hObject, handles);
Error in ==> gui_mainfcn at 221
feval(gui_State.gui_OpeningFcn, gui_hFigure, [],
guidata(gui_hFigure), varargin{:});
Error in ==> GUI_calciumDynamics_1 at 42
gui_mainfcn(gui_State, varargin{:});
Could someone kindly advice me please?
Warm Regards
Amar

回答(1 个)

Amarpal
Amarpal 2012-6-10
Workaround: This error can be avoided by loading the required variables rather than calling the actual function. I saved the variables needed for post-processing in a workspace and then loaded that workspace in the code for the GUI.
Any ideas to be able to use a function call directly in the GUI code are still welcome.
Warm Regards Amar

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by