Linking buttons in a matlab gui

5 次查看(过去 30 天)
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 个评论
Stephen23
Stephen23 2025-8-9
"Is there any method programmatically?"
Set the other buttons' ENABLE property.
warnerchang
warnerchang 2025-8-9
Thank you very much, I work out it.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2025-8-9
Generally speaking, you would create a uibuttongroup and put uiradiobutton inside of it.
  1 个评论
warnerchang
warnerchang 2025-8-9
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by