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!