uigetfile, is there anyway to choose multi suffix?
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Adam Danz
2019-2-27
There are examples in Matlab's documentation.
[file,path] = uigetfile({'*.jpg';'*.png'});
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!