Force matlab to quit while stuck in an infinite loop?

252 次查看(过去 30 天)
I found some newsgroup postings from about 4 years ago and back then there was no way to terminate a script from running in a infinite FOR loop without using ctrl+alt+delete. Has that changed or is there still no way to accomplish that?

采纳的回答

Thomas
Thomas 2012-6-26
try ctrl + c
  4 个评论
Thomas
Thomas 2012-6-26
Another helpful link
http://www.mathworks.com/support/solutions/en/data/1-188VX/

请先登录,再进行评论。

更多回答(1 个)

Anver Hisham
Anver Hisham 2016-9-13
You can use the below function to specify the maximum execution time-limit while running a program,
https://se.mathworks.com/matlabcentral/fileexchange/59120-evalwithtimer

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by