フィルターのクリア

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

2 ビュー (過去 30 日間)
Amarpal
Amarpal 2012 年 6 月 10 日
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 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