How do I set the wait time during program execution?
Show older comments
Suppose I've got two lines of code, and want to set a 1-second time interval after the execution of sentence 1, but before sentence 2. How do I achieve this?
sentence 1;
wait time (1 second);
sentence 2;
1 Comment
Lukas
on 6 May 2025
Maybee
after(1,'sec')
Answers (1)
Matt Fig
on 21 May 2011
pause(1)
Categories
Find more on Numeric Types 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!