Error in a GUI code!!
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Edith
am 13 Mär. 2015
Kommentiert: Edith
am 18 Mär. 2015
Hello!! Anyone know why is this error in my GUI code please?
Reference to a cleared variable handles. Error in Interface>psbAccept_Callback (line 235) f = get(handles.edtSampleRate, 'Value'); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in Interface (line 42) gui_mainfcn(gui_State, varargin{:}); Error in @(hObject,eventdata)Interface('psbAccept_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating uicontrol Callback
I'm trying to call a variable from a edittext in a pushbutton callback function... f = str2num(get(handles.edtSampleRate, 'String')); ... there is the error. Thanks...
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 13 Mär. 2015
You probably have a clear or "clear all" in your function or program somewhere so it's blowing away your handles structure.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!