File Exchange

image thumbnail

Millisecond Pause Function

version 1.0 (1.14 KB) by

Pause for specified amount of time, in milliseconds.



View License

This function makes use of tic toc to delay for short periods of time.

The original author of this should be attributed to Marcel Kraemer.

   Example of use:
       %Pause for 100 milliseconds

Comments and Ratings (2)

Jan Simon

Jan Simon (view profile)

Letting a loop run until the end time is reached wastes power. java.lang.Thread.sleep(duration) would be more efficient and accurate.


thank, its useful function.

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video