imat_putfile


Purpose

Enhanced uiputfile for IMAT toolbox.

Syntax

filename = imat_putfile('initfile','dialogtitle')
[filename,filterindex] = imat_putfile('initfile','dialogtitle')

Description

IMAT_PUTFILE is a wrapper around UIPUTFILE 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.

FILENAME is the fully qualified filename selected. If the user cancels, FILENAME is -1.

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.

See Also

imat_getfile