如何 MATLAB 中用一行指令或函数关闭 windows 操作系统?

我有一个程序需要跑很久,希望能在结束程序且保存结果后,自动关闭电脑。

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 14 de Dic. de 2019

0 votos

可以使用:
>> system('shutdown -s')
需要注意的是,这行代码将必定造成电脑关闭,而没有最终确认界面。请一定确认您已经保存了所有数据。

Más respuestas (0)

Categorías

Más información sobre Polymers en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!