Why does uigetfile function fail for me in 2016b and later?

I have inherited some Matlab code that runs fines on 2016a and earlier but fails in 2016b and later. A dialog for opening files, using uigetfile, does not use the passed in extensions and only wants to open .mat files. Code follows (within the same file):
In some initialization code:
global g_file_types;
g_file_types = {
'*.mat', 'Actant MAT files (*.mat)';...
'*.awd', 'Actiwatch-L text files (*.awd)';...
'*.csv', 'GENEActiv CSV files (*.csv)';...
'*.bin', 'GENEActiv BIN files (*.bin)';...
'*.csv', 'Actopsy CSV files (*.csv)'
};
In a separate function:
[fn, fp, fi] = uigetfile(g_file_types, 'Select data file');
The behavior when running is that the open file dialog does not list any extensions and only wants to open .mat files. Can you tell me what the problem might be? There are no other places in the project where the global g_file_types is changed. Thanks.

2 Comments

Note I am using a Mac (Sierra 10.12.5) if this makes any difference.
I figured it out. One needs to choose the Options button in the lower left corner of the file open dialog to get the file types chooser displayed. Sorry for the noise.

Sign in to comment.

Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Asked:

on 15 Jun 2017

Commented:

on 15 Jun 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!