How do I select files using uigetfile without file extension in R2013b OS X?
Show older comments
When I use uigetfile in matlab 2013b/8.2 Mac OSX files that don't have an extension are grayed out and not possible to select. How do I fix this? I have tried to use different inputs for filterspec but none seem to solve this problem.
[FILENAME, PATHNAME, FILTERINDEX] = uigetfile('*.*','Select data file',initial_path);
Answers (2)
Joseph Cheng
on 8 Apr 2014
0 votes
I would try uigetfile('','selectdata','path'). However i do not have access to a mac right now.
Adrian
on 28 May 2014
0 votes
I had the same issue for files missing an extension on a mac (OSX 10.9.3, MATLAB R2014a). The following worked for me.
[FILENAME, PATHNAME, FILTERINDEX] = uigetfile({'*','All Files'},'Select data file',initial_path);
It does not appear to work if you use '*' alone. You have to associate All Files with '*'.
Good luck!
Categories
Find more on App Building in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!