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.
Thank you, I added "clear lwd" as suggested and works.
Very handy! Nice work Michelle.
One suggestion: add 'clear lwd' at the end of the commands in startup.m to leave a clean workspace.
It works well. Thanks
Easy and useful tip
Simple trick but cute and usefull! Thanks Scott!
Added note that there's a preference to control this introduced in R2014b.
Removed mistaken attribution.
Inspired: Restore Last Working Directory