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