Pausing code for some time

3 visualizzazioni (ultimi 30 giorni)
Sushanth Manchikatla
Sushanth Manchikatla il 26 Giu 2020
Risposto: Manish Kumar il 26 Giu 2020
How to pause the code execution for a given amount of time in matlab ( similar to Sleep() or delay() in c++)?

Risposte (1)

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

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by