How to automatically run a matlab function at a particular time every day?
9 views (last 30 days)
Show older comments
Hi. I'd like to run a matlab function every day at 7am. Is there an easy way to do it (besides getting up early every morning)?
0 Comments
Accepted Answer
Friedrich
on 28 Feb 2012
Hi,
in the case you are running Windows you can schedule a windows task:
So the task should start
matlab -r "your_mfile;quit"
2 Comments
Daniel Shub
on 28 Feb 2012
You may also want the -nodesktop and -nosplash startup options. You should also think about compiling your function.
More Answers (2)
Chris Coutinho
on 24 Mar 2015
I tried Friedrich's solution as well, and it works great. Thanks again.
Chris
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!