收录日期:2020/11/30 15:38:29 时间:2010-09-07 20:22:39 标签:matlab

Is there a matlab function to initiate a program at a preset time?

for example, I want to run the script runmyfile.m at 14h00 ?

You can create a TIMER object that calls your code, and then use the STARTAT function to launch your script at a given time.

For example, if you want to run a script called runmyfile.m:

t1=timer('TimerFcn','runmyfile');
startat(t1,'14:00:00');