如何 MATLAB 中用一行指令或函数关闭 windows 操作系统?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 13 Dec 2019
Answered: MathWorks Support Team
on 13 Dec 2019
我有一个程序需要跑很久,希望能在结束程序且保存结果后,自动关闭电脑。
Accepted Answer
MathWorks Support Team
on 14 Dec 2019
可以使用:
>> system('shutdown -s')
需要注意的是,这行代码将必定造成电脑关闭,而没有最终确认界面。请一定确认您已经保存了所有数据。
0 Comments
More Answers (0)
See Also
Categories
Find more on Polymers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!