Linking buttons in a matlab gui

4 visualizaciones (últimos 30 días)
warnerchang
warnerchang el 9 de Ag. de 2025
Comentada: warnerchang el 9 de Ag. de 2025
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 comentarios
Stephen23
Stephen23 el 9 de Ag. de 2025
"Is there any method programmatically?"
Set the other buttons' ENABLE property.
warnerchang
warnerchang el 9 de Ag. de 2025
Thank you very much, I work out it.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 9 de Ag. de 2025
Generally speaking, you would create a uibuttongroup and put uiradiobutton inside of it.
  1 comentario
warnerchang
warnerchang el 9 de Ag. de 2025
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?

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by