How to pause a for loop until the enter key is pressed?
Show older comments
For example, say I want to print the numbers from 1 to 10. I want it to wait until the enter key is pressed to print the next number.
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements 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!