How do I select files using uigetfile without file extension in R2013b OS X?

10 views (last 30 days)
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
Joseph Cheng on 8 Apr 2014
I would try uigetfile('','selectdata','path'). However i do not have access to a mac right now.
  1 Comment
Sven
Sven on 6 May 2014
I have tried that also, but matlab seems to gray out the files regardless of the filterspec. So no solution to this problem yet...

Sign in to comment.


Adrian
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!

Categories

Find more on Programming 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!