Force matlab to quit while stuck in an infinite loop?

124 ビュー (過去 30 日間)
Lucas
Lucas 2012 年 6 月 26 日
コメント済み: Tran Tuan Anh 2025 年 10 月 25 日 9:53
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
  5 件のコメント
Ognjen Jova
Ognjen Jova 2020 年 1 月 13 日
移動済み: Walter Roberson 2024 年 11 月 8 日
Thomas you are a god,tnx alot man
Tran Tuan Anh
Tran Tuan Anh 2025 年 10 月 25 日 9:53
Thanks man, appreciate alot

サインインしてコメントする。

その他の回答 (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 Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by