Matlab Scripting - Time Delay

Hello,

I have a Matlab script and was wondering how to create a time delay like a sleep.

Thanks in Advance.
cactus1Asked:
Who is Participating?
 
markov123Connect With a Mentor Commented:
Hi cactus1

In order to create time delay in matlab, you need the following expression in your code:

pause(n);

where n is the number of seconds.


All the best.

Mark
0
 
RNMcLeanCommented:
Well, there is a "wait" command, but you have to mess about with "timer objects", a load of drivel compared to the simple idea of waiting n milliseconds via wait(n);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.