handles of a Button

1 回表示 (過去 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 Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by