How can I stop program execution in MATLAB without exiting MATLAB. I\'m looking for something like exit(1) in C++.
I\'ve tried exit/quit, but they also kill MATLAB w
Do you mean
return
?
You can also use
error("free text argument")
also (as a debugging tool)
keyboard
(but i think that is deprecated)