필터 지우기
필터 지우기

How can I implement a reset button in a GUI code?

조회 수: 7 (최근 30일)
Anthony
Anthony 2015년 7월 7일
댓글: Sid 2015년 7월 7일
Ok, so I wrote a GUI that runs my program when I click a push button called Run Program. My question is how can I implement a Reset push button to bring the user back to before the Run program button was pushed but still keep all other variables in the GUI window from resetting to no value? If anyone could help that would be great!!

채택된 답변

Sid
Sid 2015년 7월 7일
Anthony, can you have a look at Doug Hull's tutorial on a similar question? You can find it here .
  댓글 수: 1
Sid
Sid 2015년 7월 7일
In a nutshell, set up the callback function for the pushbutton to be saveState instead of it being for the figure CloseRequestFcn .

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

추가 답변 (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