Enhanced uigetfile for IMAT toolbox.
filename = imat_getfile('initfile','dialogtitle')
[filename,filterindex] = imat_getfile('initfile','dialogtitle'[,...])
IMAT_GETFILE is a wrapper around UIGETFILE that returns a fully qualified filename.
INITFILE is a string or cell array of strings that contains the file mask. If not supplied, '*.*' will be used.
DIALOGTITLE is a string containing the title for the file dialog.
Any additional input arguments will be passed directly to UIGETFILE.
FILENAME is the fully qualified filename selected. If the user cancels, FILENAME is -1. If the Multiselect option is turned on, FILENAME is a cell array of strings containing the fully qualified filenames selected.
FILTERINDEX is the index of the filter selected in the dialog box. Please see the help for UIPUTFILE for more details.
Error checking is minimal.