Reputation: 2150
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?
Upvotes: 7
Views: 2896
Reputation: 30579
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.
Upvotes: 3
Reputation: 4549
Type prefdir
on Matlab and it will give you a folder.
Your command history is in that folder, in a file called history.m
.
Upvotes: 7