How to change the button names depending on different situations?

6 vues (au cours des 30 derniers jours)
Leon
Leon le 16 Mar 2021
Commenté : Leon le 16 Mar 2021
I'm referring to buttons within app-designer. For example,
I would want the button to be called "load" in one situation, and "plot" in another situation, even though they are the same button.
Many thanks.

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 16 Mar 2021
a=uicontrol;
a.String='load'
a.String='plot'
  3 commentaires
Fangjun Jiang
Fangjun Jiang le 16 Mar 2021
app.A.Text
Leon
Leon le 16 Mar 2021
It works. Many thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by