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 ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by