Is there a matlab function to run a program at a given time?

Is there a matlab function to run a program at a given time?

for example, do I want to run runmyfile.m script at 14:00?

+3
source share
1 answer

You can create a TIMER object that calls your code, and then use STARTAT to run your script at a specific point in time.

For example, if you want to run a script with the name runmyfile.m:

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

Source: https://habr.com/ru/post/1763667/


All Articles