MATLAB Answers

Raymond
0

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

Asked by Raymond
on 28 Feb 2012
Latest activity Answered by Chris Coutinho on 24 Mar 2015
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

Sign in to comment.

Tags

3 Answers

Answer by Friedrich
on 28 Feb 2012
 Accepted Answer

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

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.

Sign in to comment.


Answer by Raymond
on 28 Feb 2012

Thanks all. Since I use Windows, I tried out Friedrich's solution which works fine.

  0 Comments

Sign in to comment.


Answer by Chris Coutinho on 24 Mar 2015

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

  0 Comments

Sign in to comment.