Bonjour,
J'ai crée un push button,et je veus lui associer en callback l'exécution d'un script appelé oiseau
Comment s'y prendre?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 fig.Push = uicontrol(fig.Fond, 'style','pushbutton','unit', 'normalized','string','Changer',... 'position',[0.7 0.95 0.15 0.03],'backgroundcolor', [1 1 1], 'foregroundcolor', [0.7 0.7 0],... 'fontunits', 'normalized','fontsize', 0.7143, 'horizontalalignment','left', 'enable', 'on', 'fontweight', 'bold',... 'Callback', 'oiseau', 'TooltipString', 'changer');
Merci
Partager