How do I select files using uigetfile without file extension in R2013b OS X?
10 views (last 30 days)
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);
2 Comments
Answers (2)
Joseph Cheng
on 8 Apr 2014
I would try uigetfile('','selectdata','path'). However i do not have access to a mac right now.
Adrian
on 28 May 2014
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!
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!