필터 지우기
필터 지우기

How to interlink push button with checkbox in GUIDE?

조회 수: 2 (최근 30일)
shrivardhan  suryawanshi
shrivardhan suryawanshi 2016년 11월 15일
댓글: Romano Geerling 2016년 11월 15일
I have designed GUI with Guide,in which I have two checkbox.I want this GUI to work in following way:
  • I will give required parameters
  • When I select one check box
  • Then I press push button
  • GUI will plot the results.
Right now GUI is plotting the graph without notice of push button.
How to interlink push button with checkbox?
  댓글 수: 2
Walter Roberson
Walter Roberson 2016년 11월 15일
We will need your code to see why it is plotting even without you pressing the push button. We will need your .fig as well.
Romano Geerling
Romano Geerling 2016년 11월 15일
Try to get the logical value 'true' or 'false' from your checkbox to the callback of the pushbutton.
In the callback of the push button you need to provide the code to check for the value of the checkbox and code for plotting the graph and not in the callback of the checkbox.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by