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

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

Have you figured this out? I'm having the exact same issue.
I'm having the same issue but with R2014a and os x 10.9.2

Sign in to comment.

Answers (2)

I would try uigetfile('','selectdata','path'). However i do not have access to a mac right now.

1 Comment

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.

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

Asked:

on 17 Mar 2014

Answered:

on 28 May 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!