MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   如何在Matlab中终止正在运行的进程? (https://www.labfans.com/bbs/showthread.php?t=23458)

poster 2019-12-10 20:41

如何在Matlab中终止正在运行的进程?
 
我有一个很简单的问题:如何使用代码终止在Matlab中运行的脚本,类似于使用CTRL + C ?

如果用户输入错误的数字,我希望程序停止运行。



[B]回答:[/B]

如果处于调试方式,则可以使用dbquit 。如果您在main函数中,则return终止并返回。否则,请使用error功能。



[url=https://stackoverflow.com/questions/2879099]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:05

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.