handles of a Button

조회 수: 6 (최근 30일)
Max Müller
Max Müller 2014년 7월 29일
댓글: Max Müller 2014년 7월 29일
Does anybody know, which handles of a PushButton I can use for setappdata ?
except: userData

채택된 답변

Joseph Cheng
Joseph Cheng 2014년 7월 29일
are you using uicontrols to make your gui?
if so this is an example.
h = figure,h1 = uicontrol('Style','pushbutton','Position',[20 20 100 60])
setappdata(h1,'example',10);disp(['button data :' num2str(getappdata(h1,'example'))])
  댓글 수: 1
Max Müller
Max Müller 2014년 7월 29일
i am using GUIDE :( is there any difference ?

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

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