handles of a Button
2 次查看(过去 30 天)
显示 更早的评论
Does anybody know, which handles of a PushButton I can use for setappdata ?
except: userData
0 个评论
采纳的回答
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'))])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!