Error in a GUI code!!

2 次查看(过去 30 天)
Edith
Edith 2015-3-13
评论: Edith 2015-3-18
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...

采纳的回答

Image Analyst
Image Analyst 2015-3-13
You probably have a clear or "clear all" in your function or program somewhere so it's blowing away your handles structure.
  1 个评论
Edith
Edith 2015-3-18
Thank you so mucho, that was correct, I wrote 'clear all' in the opening function xd. I've already erased.

请先登录,再进行评论。

更多回答(0 个)

类别

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