Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command History 1

Status
Not open for further replies.

uofmrob

Chemical
Dec 7, 2004
2
Hi, I have been using Matlab for my data analysis in graduate school. The keyaccess software that grabs the lisence is no longer in use so I am not able to open the program. The dept. is no linger supporting the program for use on personal computers, so I will not be able to open it back up. This isn't a big deal, but does anyone know how to grab the command line history without opening the progam? Is it contained in a file that I could transfer to one of our other computers that has a functioning copy of the program to open it and save it? There are some commands that I do not remember and the person who showed me how to carry out the analysis is long gone. I would REALLY apprciate any help. Thanks,
Rob
 
Replies continue below

Recommended for you

I didn't think the command history lasted beyond the last operating session.

TTFN
 
It is saved on mine (6.5), in a file called history.m, stored in my case in my documents and settings folder.



Cheers

Greg Locock
 
Bingo! I got the whole history saved and backed up. Thanks a lot!
Rob
 
Bob,
Here is the documentation:

refdir
d = prefdir
d = prefdir(1)
Descriptionprefdir returns the directory that contains preferences for MATLAB and related products (matlab.prf), the command history (history.m), the MATLAB shortcuts (shortcuts.xml), and the MATLAB desktop layout files (MATLABDesktop.xml and Your_Saved_LayoutMATLABLayout.xml). On Macintosh platforms, the directory might be in a hidden folder, for example, myname/.matlab/R14. To access the directory, select Go -> Go to Folder in the Finder. In the resulting dialog box, type the path returned by prefdir and press Enter. d = prefdir returns the name of the directory containing preferences and related files, but does not ensure its existence. d = prefdir(1) creates a directory for preferences and related files if one does not exist.

I hope this helps.

Joe Sababa

BSTeX - Equation viewer for Matlab

Joe
BSTeX- Equation viewer for Matlab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor