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 件のコメント

Barry Dezonia
Barry Dezonia 2017 年 6 月 15 日
Note I am using a Mac (Sierra 10.12.5) if this makes any difference.
Barry Dezonia
Barry Dezonia 2017 年 6 月 15 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeApp Building についてさらに検索

質問済み:

2017 年 6 月 15 日

コメント済み:

2017 年 6 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by