If you work with multiple Matlab instances open, you will soon realise that only one instance's history will be recorded -- the rest of your commands are lost forever.
I work on several different projects at the same time, so I needed a way to save my Matlab history per-project (similar to R / R-studio).
This function will write the history of your current session in a plain format Matlab file (.m). If you give it an existing filename, your history will be appended to the file's current contents.
Cite As
George (2024). saveHistory.m (https://www.mathworks.com/matlabcentral/fileexchange/47681-savehistory-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |