Create a Pause Button

2 views (last 30 days)
saiful irfan
saiful irfan on 5 Jul 2015
Commented: saiful irfan on 6 Jul 2015
I want to create a pause button for the loop
while
end
100 times, the script what should I use?
  2 Comments
Geoff Hayes
Geoff Hayes on 5 Jul 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 on 6 Jul 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.

Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 5 Jul 2015
Use pause function

More Answers (0)

Categories

Find more on Data Export to MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!