Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MATLAB Command History: how to save back up of existing history

Tags:

matlab

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?

like image 774
Bazman Avatar asked Apr 16 '14 17:04

Bazman


2 Answers

Type prefdir on Matlab and it will give you a folder.

Your command history is in that folder, in a file called history.m.

like image 186
Rafael Monteiro Avatar answered Sep 24 '22 00:09

Rafael Monteiro


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.

like image 23
chappjc Avatar answered Sep 22 '22 00:09

chappjc