필터 지우기
필터 지우기

Set function not working.

조회 수: 1 (최근 30일)
Philosophaie
Philosophaie 2016년 4월 29일
댓글: Walter Roberson 2016년 4월 29일
I am having trouble with the "set" function
Error in GUIfunction>Evaluate (line 101)
set(Bn,'String',num2str(Bn1));
Error while evaluating UIControl Callback
uicontrol('Style','pushbutton','String','Evaluate','Position',[130,550,100,50],'Callback',{@Evaluate},'BackgroundColor','green');
Bn = uicontrol('Style','edit','String','','position',[10 450 100 20]);
set(f,'Visible','on');
handles = struct('Bn',Bn);
guidata(f, handles);
function Evaluate(hObject, eventdata, handles)%#ok
handles = guidata(hObject);
Bn = handles.Bn;
Bn1=40;
set(Bn,'String',num2str(Bn1));
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 4월 29일
There should be at least one more line of error message before the ones you show, indicating the kind of problem that is being encountered, like no such property or not an object

댓글을 달려면 로그인하십시오.

답변 (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