×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Command History

Command History

Command History

(OP)
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

RE: Command History

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

TTFN

RE: Command History

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

RE: Command History

(OP)
Bingo!  I got the whole history saved and backed up.  Thanks a lot!
Rob

RE: Command History

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
http://www.geocities.com/bstex2001/

Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources