Terminate MATLAB program (same as quit)
As an alternative to the exit function,
click the Close box in the MATLAB® desktop.
the current session of MATLAB after running finish.m,
if the file finish.m exists. It performs the same
as quit and takes the same termination options,
such as force.
exit(code) returns exit code
when calling a MATLAB command from the system command line.
finish | quit
Was this topic helpful?