Linking buttons in a matlab gui

조회 수: 4 (최근 30일)
warnerchang
warnerchang 2025년 8월 9일
댓글: warnerchang 2025년 8월 9일
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