How to automatically run a matlab function at a particular time every day?

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)?

 채택된 답변

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

And on a linux box the same can be done using "cron".
You may also want the -nodesktop and -nosplash startup options. You should also think about compiling your function.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Raymond
Raymond 2012년 2월 28일

0 개 추천

Thanks all. Since I use Windows, I tried out Friedrich's solution which works fine.
Chris Coutinho
Chris Coutinho 2015년 3월 24일

0 개 추천

I tried Friedrich's solution as well, and it works great. Thanks again.
Chris

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

질문:

2012년 2월 28일

답변:

2015년 3월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by