uiget opens a dialog box that allows the user to select folder(s) and/or file(s) in a single UI. This is designed as a generic alternative to MATLAB's more specific UI selection tools: uigetdir and uigetfile
This tool utilizes MATLAB's string objects, introduced in R2016b.
This utility was inspired by: Making a dialog where the user can choose either a file or a folder, a Q&A posted by SO user Dev-iL on 2018-07-20
file = uiget()
[file, path] = uiget()
___ = uiget(basepath)
___ = uiget(___, Name, Value)
| Parameter | Description | Type | Default Value |
|---|---|---|---|
'MultiSelect' |
Specify whether a user can select multiple files or folders | logical |
false |
'ScalarPathOutput' |
Specify whether a scalar path is output when using 'MultiSelect' |
logical |
false |
'Title' |
Specify a custom dialog title | char vector, string scalar |
'Select File or Folder' |