필터 지우기
필터 지우기

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

조회 수: 19 (최근 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)?

채택된 답변

Friedrich
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
Titus Edelhofer
Titus Edelhofer 2012년 2월 28일
And on a linux box the same can be done using "cron".
Daniel Shub
Daniel Shub 2012년 2월 28일
You may also want the -nodesktop and -nosplash startup options. You should also think about compiling your function.

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

추가 답변 (2개)

Raymond
Raymond 2012년 2월 28일
Thanks all. Since I use Windows, I tried out Friedrich's solution which works fine.

Chris Coutinho
Chris Coutinho 2015년 3월 24일
I tried Friedrich's solution as well, and it works great. Thanks again.
Chris

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by