Force matlab to quit while stuck in an infinite loop?

45 vues (au cours des 30 derniers jours)
Lucas
Lucas le 26 Juin 2012
Commenté : Tran Tuan Anh le 25 Oct 2025
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?

Réponse acceptée

Thomas
Thomas le 26 Juin 2012
try ctrl + c
  5 commentaires
Ognjen Jova
Ognjen Jova le 13 Jan 2020
Déplacé(e) : Walter Roberson le 8 Nov 2024
Thomas you are a god,tnx alot man
Tran Tuan Anh
Tran Tuan Anh le 25 Oct 2025
Thanks man, appreciate alot

Connectez-vous pour commenter.

Plus de réponses (1)

Anver Hisham
Anver Hisham le 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

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by