![]() |
是否有Matlab函数在预设时间启动程序?
是否有Matlab函数在预设时间启动程序?
例如,我想在14h00运行脚本runmyfile.m? [B]回答:[/B] 您可以创建一个调用代码的[URL="http://www.mathworks.com/help/techdoc/matlab_prog/f9-38055.html"]TIMER[/URL]对象,然后使用[URL="http://www.mathworks.com/help/techdoc/ref/startat.html"]STARTAT[/URL]函数在给定的时间启动脚本。 例如,如果要运行一个名为runmyfile.m的脚本: t1=timer('TimerFcn','runmyfile'); startat(t1,'14:00:00'); [url=https://stackoverflow.com/questions/3662408]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 23:15。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.