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

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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 App 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