フィルターのクリア

How to end the running of a script in a subfunction?

8 ビュー (過去 30 日間)
mh z
mh z 2018 年 12 月 3 日
コメント済み: mh z 2019 年 1 月 2 日
I use matlab 2014b where the script and function are in different m files. Is it possible to end the running of the script in a function?

採用された回答

Walter Roberson
Walter Roberson 2018 年 12 月 3 日
error('Rage quitting!')
  7 件のコメント
Walter Roberson
Walter Roberson 2019 年 1 月 2 日
Then, NO, you cannot do that without seeing the error message -- not unless the program cooperates to try/catch to detect the quit and stop itself nicely.
mh z
mh z 2019 年 1 月 2 日
OK!

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

その他の回答 (1 件)

madhan ravi
madhan ravi 2018 年 12 月 3 日
function...
input('just press control + c to stop script')
end

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by