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?

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 4 Jun. 2013
Bearbeitet: Azzi Abdelmalek am 4 Jun. 2013

0 Stimmen

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 Kommentar

Amanda
Amanda am 4 Jun. 2013
Thank you, that sounds like exactly what I'm looking for.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by