Use Saving preferences to specify how often to automatically save the Command History during a MATLAB session.
Save history file on quit. Select this option to save the Command History when you end the MATLAB session. If the session does not end via a normal termination, that is,
quit function, File -> Exit MATLAB, or the MATLAB desktop close box, the history file will not be saved for that session.
Save after n commands. Select this option to save the Command History after
n statements are added to the file. For example, if you select the option and set
n to 10, after every 10 statements are added to the history file, the file will be automatically saved. Use this option if you don't want to risk losing entries to the saved history due to an abnormal termination.
Don't save history file. Select this option if you don't want to save the history file. This feature is useful when multiple users share the same machine and don't want other users to view the statements they have run.
|Preferences for Command History||Getting Help|