How can I stop the program? "Break" - Error
显示 更早的评论
I am using a "Break" to stop the program but it is showing an error. How can I solve that and stop the program? Thanks

采纳的回答
更多回答(1 个)
Birdman
2017-10-26
Break is used to stop for or while loops. Just throw an error by typing:
error('Break');
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!