如何在 MATLAB 中中止正在运行的程序? [英] How to abort a running program in MATLAB?

查看:32
本文介绍了如何在 MATLAB 中中止正在运行的程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时在调用一个函数后(大约需要 30 多分钟才能完成),您意识到自己做错了什么,想要停止程序.

Sometimes after calling a function (which takes some 30 odd minutes to finish), you realize that you did something wrong and want to stop the program.

你如何在 MATLAB 中做到这一点?

How do you do that in MATLAB?

我所做的是完全关闭 MATLAB 并重新启动.我认为有一种方法可以中止函数的执行.

What I do is shutdown MATLAB completely and restart. I think there would be a way to abort the execution of the function instead.

有人知道那是什么吗?

推荐答案

Hitting Ctrl + C 通常可以解决问题,尽管 有时会遇到障碍.

Hitting Ctrl + C usually does the trick, although sometimes it has been known to run into snags.

这篇关于如何在 MATLAB 中中止正在运行的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆