The following Matlab project contains the source code and Matlab examples used for directory selection dialog box which remembers the last directory selected. . Wrapper for Matlab's UIGETDIR function which adds the ability to remember the last selected directory. UIGETDIR2 stores information about the last selected directory in a mat file which it looks for when called.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.