Terminate MATLAB program (same as quit)
exit
exit terminates the current session of MATLAB®. This function is equivalent to the quit function and takes the same options. For more information, see quit.
quit