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 commentaires

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

Connectez-vous pour commenter.

Réponses (2)

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

1 commentaire

I have tried that also, but matlab seems to gray out the files regardless of the filterspec. So no solution to this problem yet...

Connectez-vous pour commenter.

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!

Catégories

En savoir plus sur App Building dans Centre d'aide et File Exchange

Produits

Question posée :

le 17 Mar 2014

Réponse apportée :

le 28 Mai 2014

Community Treasure Hunt

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

Start Hunting!

Translated by