need a code to restart matlab automatically run a function and then restart matlab doing the same
显示 更早的评论
Hi guys, I need a function that allows me to close matlab then open matlab and run a specific function then close again and then restart.
The rationale behind this is that the matlab timer function gives me lots of errors after a few hours. If I restart matlab then I can circumvent the problem.
采纳的回答
更多回答(1 个)
Sean de Wolski
2015-2-27
Why not fix the errors? This sounds like a pretty bad workaround.
Here it is anyway:
system('matlab &');quit
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!