Effacer les filtres
Effacer les filtres

uigetfile, is there anyway to choose multi suffix?

2 vues (au cours des 30 derniers jours)
Yu Li
Yu Li le 27 Fév 2019
Commenté : Yu Li le 27 Fév 2019
I need want to choose image files, the file type is either .jpg or .png, so I need to add an additional input to determine the file type and to pick it using function 'uigetfile', such as
uigetfile('*.jpg')
or
uigetfile('*.png')
my question is, is there anyway to show both the .jpg and .png file together when I use uigetfile, so I can remove that additional input?
Thanks!
Yu

Réponse acceptée

Adam Danz
Adam Danz le 27 Fév 2019
There are examples in Matlab's documentation.
[file,path] = uigetfile({'*.jpg';'*.png'});

Plus de réponses (0)

Catégories

En savoir plus sur App Building dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by