Terminate MATLAB program (same as
the current session of MATLAB® after running
if the file
finish.m exists. It performs the same
quit and takes the same termination options,
the MATLAB command prompt. To interrupt a MATLAB command,
see Stop Execution.
exit(code) returns exit code
when calling a MATLAB command from the system command line.
As an alternative to the
click the Close box in the MATLAB desktop.