Move to next and previous iteration in for loop on button press
3 views (last 30 days)
Show older comments
Hello,
I am playing a video inside a for loop (for frame = startframe:endframe) and the image updates for each iteration in the for loop.
I want the user to be able to move forward and backward inside the loop depending on which button is pressed. Say "left arrow key" moves to previous iteration and "right arrow key" moves to next iteration.
How can I do this?
Thanks!
0 Comments
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!