Task scheduling
显示 更早的评论
Hello everybody!
I have a problem with executing a script in Task Scheduler. A script needs to execute itself in the background(daily). I found several tutorials but it just doesn't seem to work. I can't configure it right. Tried this...
<http://www.mathworks.com/support/solutions/en/data/1-361S45/index.html?product=ML&solution=1-361S45>
It runs Matlab, I've tried, but I also want it to open a script and run it. Something to do with -r as in the link above. Afterwards it would be great if it could exit the program.
Are there any other solutions? Since MatLab will always stay open, can I just specify time when it should run a particular script? I've tried TimerFcn, but as I understand it won't run scripts? Or does it?
Thank you!
I use Windows 7.
采纳的回答
更多回答(2 个)
Slobodan Djordjevi?
2011-12-19
0 个投票
3 个评论
Daniel Shub
2011-12-19
This is really not a MATLAB question, but I think if you create a .bat file with that line and then include the name and path of the .bat file in the action, you would be okay.
Jan
2011-12-19
I've used "matlab" instead of including the path on purpose. The path of your Matlab executable contains a space. You can try to include it in double quotes.
Or add the path to the Matlab function in the "Start in" field.
Jan
2011-12-20
Accepting a question means, that the problem is solved by this question.
Slobodan Djordjevi?
2011-12-20
0 个投票
1 个评论
Jan
2011-12-20
Please accept the answer, which solves the problem, and add comments in the comment section and not as additional answer. Thanks.
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!