How can I access my command history without running Matlab program?

32 views (last 30 days)
I have been using Matlab 2017a. the program crashed and can not be accessed without reinstallation. How can I access my command history to save a copy before uninstallation, ofcourse without running Matlab program because it doesn't work. I could not find a history file in the installation folder.

Answers (3)

Stephen23
Stephen23 on 8 Jan 2019
Edited: Stephen23 on 8 Jan 2019
The command history is stored in either:
  • history.xml (R2014a or later)
  • history.m (earlier versions)
The file can be found in the user's MATLAB preference directory, which can be found using the command prefdir. If you cannot use MATLAB to run that command and are using Windows the prefdir help includes an example which you should be able to use to figure out its location on your computer.

madhan ravi
madhan ravi on 8 Jan 2019

maryam bagheri
maryam bagheri on 8 Jan 2019
I found the solution by searching the entire drive for history.xml files. then I opened all files on text editor and searched for keywords from my usual commands iusing "search in all open documents" tool.

Categories

Find more on Desktop in Help Center and File Exchange

Products


Release

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!