uigetdir
Open folder selection dialog box
Description
opens a modal
dialog box that displays the folders in the current working directory and returns
the path that the user selects from the dialog box. selpath
= uigetdir
This dialog box enables a user to navigate to a folder and select it (or type the
name of a folder). If the specified folder exists, then MATLAB® returns the selected path as a character vector when the user clicks
OK. If the user clicks Cancel or the close button (X) on the title bar, then MATLAB returns 0
.
specifies the start path in which the dialog box opens. If selpath
= uigetdir(path
)path
is empty or is not a valid path, then the dialog box opens in the current working
directory.
specifies a title for the dialog box. selpath
= uigetdir(path
,title
)
Note
The visual characteristics of the dialog box depend on the operating system that runs your code. For instance, some operating systems do not show title bars on dialog boxes. If you pass a dialog box title to the uigetdir function, those operating systems do not display the title.
Examples
Input Arguments
More About
Version History
Introduced before R2006a