MATLAB: Put a program on standby

standbytimer

hi there,
is there a way i can start a program at a certain time. for example i want a part of a program to start a certain time of the day and then stop at a certain time. so im assuming the program will be in "standby mode" until that specific time accurs. any help would be greatly appreciated. thanks alot. cheers SN

Best Answer

You might be better off an OS level scheduler (for example cron in Linux and task scheduler in Windows). You can have the OS scheduler launch a new instance of MATALB with the -r flag pointing to the function/script you want to run.
Related Question