How to stop a script from executing
조회 수: 207(최근 30일)
표시 이전 댓글
This is a basic question but I am wondering how you can halt a script from executing mid script.
댓글 수: 0
채택된 답변
추가 답변(1개)
Paulo Silva
2011년 8월 16일
%code
error('Mid script reached, this error message was made on purpose')
%code
Another alternative could be the use of the return function
참고 항목
범주
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!