Restore Last Working Directory

Version (2.3 KB) by Antonio
Files for allowing MATLAB® to restore the previous working directory.


Updated 30 Oct 2013

View License

This submission provides a sample startup.m and finish.m file to allow MATLAB to restore the working directory from the previous MATLAB session.

Cite As

Antonio (2023). Restore Last Working Directory (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Startup MATLAB in last working folder

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes