Open standard dialog box for selecting and saving file.
[FileName[,PathName[,FilterIndex]]]=uiputfile([file_mask[,dir[,boxTitle]]]) PathFileName=uiputfile([file_mask[,dir[,boxTitle]]])
a string matrix which gives the file masks to use for file selection. file_mask is written with Unix convention. The default value is '*'.
we can also add descriptions for masks, for example ["*.x*","X files";"*.bin","BIN files"].
a character string which gives the initial directory used for file search. By default uiputfile uses the previously selected directory.
a character string which gives the title of the uiputfile window. By default uiputfile's title is 'uiputfile'.
string which give the user selected file (path + file name) if user answers "Ok" or the " " string if user answers "Cancel".
is the user selected file path if user answers "Ok" or the " " string if user answers "Cancel".
is the user selected filter index on the list box if user answers "Ok" or '0' string if user answers "Cancel"
Creates a dialog window for file saving.