Select a file from a dropdown
10 ビュー (過去 30 日間)
古いコメントを表示
Daniel
2022 年 10 月 7 日
回答済み: Dhanesh Alagarsamy Chinnaraja
2022 年 10 月 13 日
Hi,
Right now my app when starts with the startupfnc I select a specific dir with uigetdir, so now I want to have all the ".xlsx" files of the dir in a dropdown.
Thanks for your help.
1 件のコメント
dpb
2022 年 10 月 7 日
See uigetfile instead (don't make your user go through two dialogs when can select the directory in the latter as well). Hopefully you can have a reasonable guess at where should be for a default starting location...
採用された回答
Dhanesh Alagarsamy Chinnaraja
2022 年 10 月 13 日
Hi,
dir('*.xlsx');
will return all files with '.xlsx' extension in the present directory.
The appropriate elements from the structure returned by 'dir' can be used as inputs for 'uidropdown'
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!