Force matlab to quit while stuck in an infinite loop?

조회 수: 421(최근 30일)
Lucas
Lucas 2012년 6월 26일
답변: Ognjen Jova 2020년 1월 13일
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
  댓글 수: 3
Thomas
Thomas 2012년 6월 26일
Another helpful link
http://www.mathworks.com/support/solutions/en/data/1-188VX/

댓글을 달려면 로그인하십시오.

추가 답변(2개)

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

Ognjen Jova
Ognjen Jova 2020년 1월 13일
Thomas you are a god,tnx alot man

범주

Find more on Startup and Shutdown 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!

Translated by