Filter löschen
Filter löschen

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

19 Ansichten (letzte 30 Tage)
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)?

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Raymond
Raymond am 28 Feb. 2012
Thanks all. Since I use Windows, I tried out Friedrich's solution which works fine.

Chris Coutinho
Chris Coutinho am 24 Mär. 2015
I tried Friedrich's solution as well, and it works great. Thanks again.
Chris

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by