Clear Filters
Clear Filters

Pausing code for some time

2 views (last 30 days)
Sushanth Manchikatla
Sushanth Manchikatla on 26 Jun 2020
Answered: Manish Kumar on 26 Jun 2020
How to pause the code execution for a given amount of time in matlab ( similar to Sleep() or delay() in c++)?

Answers (1)

Manish Kumar
Manish Kumar on 26 Jun 2020
You can use pause function.
pause(n);
It will pause your code execution for n seconds.
pause(n);

Categories

Find more on Colormaps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!