How to stop a script from executing
102 views (last 30 days)
Show older comments
This is a basic question but I am wondering how you can halt a script from executing mid script.
0 Comments
Accepted Answer
More Answers (1)
Paulo Silva
on 16 Aug 2011
%code
error('Mid script reached, this error message was made on purpose')
%code
Another alternative could be the use of the return function
2 Comments
See Also
Categories
Find more on Migrate GUIDE Apps 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!