How EXIT MATLAB
You may exit MATLAB after you finished with LAB, or
in the middle of the work and plan to continue later.
The following steps provide a relatively safe exit:
1. Type: save
var_Filename See
Picture1 Picture 2
Example : save var_Lab1
This will save your variables in a binary file, that can not be seen,
but can be loaded to a MATLAB session.
2. Type: diary off
3. Type exit.