Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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 ?

like image 621
bzak Avatar asked Nov 20 '25 21:11

bzak


1 Answers

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');
like image 139
Jonas Avatar answered Nov 23 '25 06:11

Jonas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!