uigetdir2

Directory selection dialog box which remembers the last directory selected.

You are now following this Submission

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

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.

Cite As

Chris Cannell (2026). uigetdir2 (https://ch.mathworks.com/matlabcentral/fileexchange/9521-uigetdir2), MATLAB Central File Exchange. Retrieved .

Categories

Find more on App Building in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Added a check for empty string passed as first argument so you can specify dialog text as the second argument and still make use of the last used directory feature. Thanks to Jonathan Erickson for the bug report.