How to end the running of a script in a subfunction?
4 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Walter Roberson
on 3 Dec 2018
error('Rage quitting!')
7 Comments
Walter Roberson
on 2 Jan 2019
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.
More Answers (1)
See Also
Categories
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!