Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
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

Antworten (1)

Amarpal
Amarpal am 10 Jun. 2012
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

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by