Linking buttons in a matlab gui

Now, I create a GUI without guide. I want to link buttons' behavior, for example, as I press a button, another button cannot be pressed, and vice versa. Anyone can provide an idea how to manage it? I know it is easy in guide. Is there any method programmatically?

2 Commenti

"Is there any method programmatically?"
Set the other buttons' ENABLE property.
Thank you very much, I work out it.

Accedi per commentare.

Risposte (1)

Walter Roberson
Walter Roberson il 9 Ago 2025

0 voti

Generally speaking, you would create a uibuttongroup and put uiradiobutton inside of it.

1 Commento

However, I also want the button could control an edit box behavior and the edit box could also control the behavior of the button. Is there any solutions?

Accedi per commentare.

Categorie

Prodotti

Release

R2019b

Richiesto:

il 9 Ago 2025

Commentato:

il 9 Ago 2025

Community Treasure Hunt

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

Start Hunting!

Translated by