How to automatically run a matlab function at a particular time every day?
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Friedrich
2012-2-28
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 个评论
Daniel Shub
2012-2-28
You may also want the -nodesktop and -nosplash startup options. You should also think about compiling your function.
更多回答(2 个)
Chris Coutinho
2015-3-24
I tried Friedrich's solution as well, and it works great. Thanks again.
Chris
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!