How to end the running of a script in a subfunction?
조회 수: 8 (최근 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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!