create time step in MATLAB

hi dears how I can create time step in MATLAB by coding for example how I can run a loop whit 1 second between each etaration Thank U all

 Accepted Answer

Try using the pause(1) function.
pause(1); % Delay for 1.0 seconds.

More Answers (1)

Categories

Find more on MATLAB 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!