File Exchange

image thumbnail

every

version 1.0.1 (1.55 KB) by Emmanuel Farhi
EVERY execute a command every given period

0 Downloads

Updated 09 May 2019

View License

EVERY execute a command every given period
This command is in a way similar to the 'cron' Linux/unix command/scheduler.
T = EVERY(DELAY, COMMAND) executes the command after the given delay, in seconds.
The DELAY must be a single number, in seconds.
The COMMAND can be (see 'timer' documentation):
'code' a single string (matlab code),
@code(src,evnt, ...) a function handle with arguments source(timer) and
event type, and optional arguments.

To stop the execution, use STOP(T).

Example: every(3, 'disp hello')

Cite As

Emmanuel Farhi (2019). every (https://www.mathworks.com/matlabcentral/fileexchange/71503-every), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.0.1

added icon

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux