MATLAB: Is it possible to see the list of files in a folder while using UIGETDIR on a Windows machine

MATLAB

I would like to see the UIGETDIR for Windows behave more like the version for the Mac. That is, I would like to have an option where it can list files in the folder before I select a folder using UIGETDIR. Sometimes you do not know if you are in the correct folder unless you can see the filenames in it.

Best Answer

The ability to see the list of files in a folder while using UIGETDIR on Windows machines does not exist in MATLAB 7.9 (R2009b).
As a workaround, use UIGETFILE to select a file in the directory of interest, and use the second output argument to retrieve the path to the directory:
[file, path] = uigetfile
Related Question