Save Entire Command History

Maintains a complete record of the command history (Matlab only maintains the last 20k worth ...
3.1K Downloads
Updated 7 Dec 2005

No License

'preserve_history.m' maintains a complete record of the command history (MATLAB only maintains the last 20k worth of commands, so old commands are lost).

To get it to run you need to create a copy of your 'history.m' file and rename it 'history_saved.m'. The path of the history file will be something like "C:\Documents and Settings\poi\Application
Data\MathWorks\MATLAB\R14SP3\"

There are paths you will need to change in 'preserve_history.m' depending on your installation directory and username on lines: 9,25,47.

Also attached are 'startup.m' and 'finish files.m' which call the preserve_history file and also restore MATLAB to the last working directory whenever it is started.

The attached files must all be copied to "...matlab_directory\toolbox\local\".

Cite As

Jonathan Snell (2024). Save Entire Command History (https://www.mathworks.com/matlabcentral/fileexchange/9291-save-entire-command-history), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Software Development Tools in Help Center and MATLAB Answers
Acknowledgements

Inspired: Save entire command history - Updated, Fast

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0