image thumbnail

Startup MATLAB in last working folder

version (2.92 KB) by Michelle Hirsch
Directions for having MATLAB® start in the last working folder.


Updated 01 Sep 2016

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This submission provides directions on how to instruct MATLAB to begin in the final working directory from the previous session of MATLAB.
There are no m-files included with this submission, just directions on how to modify startup.m and finish.m
Note: This capability was introduced directly into MATLAB, so these directions are no longer as of R2014b. There is now a preference (Preferences -> MATLAB -> General) to specify the initial working folder as the last working folder from your previous MATLAB session.

Cite As

Michelle Hirsch (2021). Startup MATLAB in last working folder (, MATLAB Central File Exchange. Retrieved .

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

Inspired: Restore Last Working Directory

Community Treasure Hunt

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

Start Hunting!