How to filter out files with a list of specific string in UIGETFILE command?
8 次查看(过去 30 天)
显示 更早的评论
Hi,
I need to filter the visible list of files containing multiple possible specific strings with UIGETFILE.
Example:
My folder contains following files:
- EFI100.xls
- EFA200.xls
- EFA500.xls
- EFB100.xls
- etc.
I would like to see only EFA*.xls and EFB*.xls file in te selection list.
The command [xlsfile] = uigetfile('EFA*.xls','Select Excel file') works, ok.
But I want to list EFI*.xls too, I can I do?
Thanks.
0 个评论
采纳的回答
Jonas
2022-11-28
you can provide mutiple filters to choose from:
uigetfile({'EFA*.xls;EFB*.xls'},'Select a File');
this shows EFA*.xls files and EFB*.xls files
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!