uipickfiles: uigetfile on steroids

Many-featured, platform independent file and directory picker.
Updated 16 Mar 2024

View License

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

This is a GUI application that allows multiple files or directories to be selected and allows you to manage the list (remove files, reorder, etc.) before returning. It has basic filtering as well as regular expression filtering and navigation of the file system is easy. The output is configurable (cell, struct or char arrays). It is written entirely in M and so is platform independent.

Cite As

Douglas Schwarz (2024). uipickfiles: uigetfile on steroids (https://www.mathworks.com/matlabcentral/fileexchange/10867-uipickfiles-uigetfile-on-steroids), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Dialog Boxes in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Fixed bug related to sorting introduced in version 1.23.

Added ability to sort files in natural order; requires sort_nat function.

Re-upload of version 1.21. For some reason, previous upload did not work properly and available version was 1.15.

Applied tip from William Thielicke (thanks!) to get icon images to show up in R2020a. Also, fixed longstanding bug that prevented struct output from working correctly.

Addressed problem mentioned by Chris. Now, on Windows, an attempt to open "My Documents" will be silently converted to an open of "Documents" instead if "My Documents" doesn't really exist.

Fixed bug identified by Bryan.

Added use of escape key as equivalent to Cancel button.

GUI is now resizable and remembers the size and position last used.

Added ability to sort file list by name, date or size.

Fixed bug in yesterday's version in recalling folders.

Added ability to recall previous selections. Fixed a few minor bugs.

Recent Folders list (right-click path box) is now sorted in chronological order and is persistent between calls (via a preferences setting). Also, ctrl-F will select all files (leaving folders unselected).

Minor interface changes -- backspace will go up one directory, control-A (command-A on the Mac) will select all as before, but won't cause menu bar to appear.

(Windows only) Now works correctly with UNC-named resources (e.g., \\machine\share).

Updated the user interface, appearance, documentation and internal comments.

Fixed bug identified by W Thielicke.

Updated to work with R2007a.