Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Amarpal
Amarpal le 10 Juin 2012
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

Réponses (1)

Amarpal
Amarpal le 10 Juin 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

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by