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?