Force matlab to quit while stuck in an infinite loop?

260 views (last 30 days)
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?

Accepted Answer

Thomas
Thomas on 26 Jun 2012
try ctrl + c
  4 Comments
Thomas
Thomas on 26 Jun 2012
Another helpful link
http://www.mathworks.com/support/solutions/en/data/1-188VX/
Ognjen Jova
Ognjen Jova on 13 Jan 2020
Moved: Walter Roberson on 8 Nov 2024 at 20:15
Thomas you are a god,tnx alot man

Sign in to comment.

More Answers (1)

Anver Hisham
Anver Hisham on 13 Sep 2016
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

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!