How to stop a script from executing
27 次查看(过去 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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Software Development Tools 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!