Separate Start/Stop in GUIDE

I'm only looking for a basic solution for this, if possible. I pretty much understand how to utilize the push buttons, and I definitely understand how to use the toggle button to start and stop output of data. The professor I'm working with would like separate start and stop buttons, but I'm having trouble doing what basically amounts to combining the toggle with the push buttons. Is there a way to do this through GUIDE, or must I do this purely through code?

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 4일
편집: Azzi Abdelmalek 2013년 6월 4일

0 개 추천

You can use two pushbutton one for stop another for start.You have to do it under certain condition,
  1. when start is activated, the pushbutto_start should be enabled off, and pushbutton_stop should be enabled on
  2. when stop is activated, pushbutton_stop should be enabled off and pushbutto_start should be enabled on
You have to communicate the status of each action start and stop between the two pushbutton, using for example guidata, you have also, to set in opening function, the two action start and stop to off and on

댓글 수: 1

Amanda
Amanda 2013년 6월 4일
Thank you, that sounds like exactly what I'm looking for.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by