handles of a Button

5 visualizzazioni (ultimi 30 giorni)
Max Müller
Max Müller il 29 Lug 2014
Commentato: Max Müller il 29 Lug 2014
Does anybody know, which handles of a PushButton I can use for setappdata ?
except: userData

Risposta accettata

Joseph Cheng
Joseph Cheng il 29 Lug 2014
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 Commento
Max Müller
Max Müller il 29 Lug 2014
i am using GUIDE :( is there any difference ?

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by