How do I guarantee to interrupt a running a script?
5 次查看(过去 30 天)
显示 更早的评论
When a MATLAB script is running, it is usually possible to interrupt the script by typing Ctrl-C, but not always. Sometimes MATLAB will not respond to Ctrl-C. Is there some way to get MATLAB to always respond to Ctrl-C or is there another key combination which will always interrupt a MATLAB script?
0 个评论
采纳的回答
Guillaume
2015-8-28
There isn't any way (short of quitting matlab) and the architecture of matlab would have to change for it to be possible as it requires multithreading.
2 个评论
Walter Roberson
2015-8-28
Intensive calculations on sufficiently large arrays are handled by calling external high-performance libraries of compiled code that are not written in MATLAB. There is no way of interrupting those routines short of killing the process (or possibly it would respond to a Signal if you are on a Unix-type system.)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!