According to this link:
How to save contents of MATLAB's command windows to in a file?
I can back up my commends going forward using diary
which is great:
However I would also like to back up my existing command history, I assume the command history is stored in a text file somewhere correct? If so can I just copy this?
Type prefdir
on Matlab and it will give you a folder.
Your command history is in that folder, in a file called history.m
.
Have a look at the "Save Entire Command History" submission, which will let you save all your command history, not just the last 20k allowed by MATLAB.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With