MATLAB: How to end the running of a script in a subfunction?

end running

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?

Best Answer

error('Rage quitting!')