Why does uigetfile function fail for me in 2016b and later?
Show older comments
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.
Answers (0)
Categories
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!