×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

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!

*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

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! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now