Create a Pause Button

8 visualizzazioni (ultimi 30 giorni)
saiful irfan
saiful irfan il 5 Lug 2015
Commentato: saiful irfan il 6 Lug 2015
I want to create a pause button for the loop
while
end
100 times, the script what should I use?
  2 Commenti
Geoff Hayes
Geoff Hayes il 5 Lug 2015
Saiful - please provide some context. Do you have a GUI that (perhaps) has a push button that calls some code that invokes a while loop? And do you have another button that when pressed should pause the while loop? Also, what do you mean by 100 times?
saiful irfan
saiful irfan il 6 Lug 2015
while(vid.FramesAcquired<=100)
end
of the loop I want to create a pause button and stop? The loop I enter in the start button.

Accedi per commentare.

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 5 Lug 2015
Use pause function

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by