How to end the running of a script in a subfunction?
4 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
Walter Roberson
2018 年 12 月 3 日
error('Rage quitting!')
7 件のコメント
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.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!