Restore previous working directory on MATLAB Startup

This simple program will restore the last working directory on resuming MATLAB

You are now following this Submission

This simple program will remember your last working directory and will prompt you on resuming MATLAB, whether the user wants to start in the last working directory or not
Just copy the contents of the zip file in the Matlabroot work directory
ex: c:\Matlab\R2006b\work and make sure that its on the path.
i.e type path on MATLAB command prompt and see if the above directory exists in the path. If the "work" directory does not exist on your path, then use the "pathtool" function to add the work directory manually.

Cite As

Vihang Patil (2026). Restore previous working directory on MATLAB Startup (https://se.mathworks.com/matlabcentral/fileexchange/19239-restore-previous-working-directory-on-matlab-startup), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

1.Typo Error removed
2. Updated the Description part