File Exchange Pick of the Week

Our best user submissions

File and Folder Selection GUI 2

Posted by Brett Shoelson,

This week's Pick of the Week is uipickfiles, by Douglas Schwarz.

You may have noticed that we--that is, Bob, Jiro, and I--tend to Pick a lot of GUI tools. Though niche tools have their places, basic GUI components tend to be widely useful. Today's Pick is no exception.

Doug refers to his file as "uigetfile on steroids". No argument here; this function allows selection of files OR folders (in the non-exclusive sense of the term "or"), using a GUI to navigate easily around one's directories.

Doug tested his file on both Windows (XP) and Mac (OS X) platforms; I'll take his word for it that it works on the Mac. (As he points out, it is implemented entirely in MATLAB, so it should be platform-independent.) I did take it for a test drive on my Windows XP machine, and really liked the nice file-and-folder-picking (and list-sorting) interface. Uipickfiles facilitates filtering (including regular-expression filtering), and allows the user to select the class of the output--as cells, structures, or character arrays.

I particularly like how nicely Doug's code is implemented, commented, and documented. Very nice work, Doug!


Get the MATLAB code

Published with MATLAB® 7.9


Comments are closed.

2 CommentsOldest to Newest

Nathan replied on : 1 of 2
What ultimately sold me on this submission was the regexp filter. I have a few programs that require only certain file types to be loaded at a time, with varying names. The regexp filter facilitated my task and now I have a much nicer program. Plus, the multiple file / folder selecting is VERY convenient, let alone the ability to sort the files. (uigetfile does allow multiple file selection, but the ordering is not as flexible) Thanks a lot, Doug, and thank you Brett for highlighting this wonderful submission.