pwSelectDataFile
[filename, pathname] = pwSelectDataFile(multiselect, label, openFile, proposedName)
Opens a GUI to let the user open or saving a data file.
multiselect If true, multiple files may be selected at once.
label Title used in the file selection dialog.
openFile If true (default), a dialog to open a file will be shown.
Otherwise, a file saving dialog is used.
proposedName Proposed filename used in the file saving dialog.
filename Cell array of strings if multiple filenames are selected.
A string if a single file has been selected.
0 if the dialog has been cancelled.
pathname 0 if the dialog has been cancelled.
Description
The user may first select to start browsing in the current folder,
'../Data', or the data folder as specified in the configuration.
If the selected file(s) do not belong to these folders,
the user is asked whether the new folder
should be used within the configuration.
Used filter: *.data (ASCII files)
*.txt (ASCII files)
*.xls (Excel files)