필터 지우기
필터 지우기

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