Select a file from a dropdown
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Daniel
am 7 Okt. 2022
Beantwortet: Dhanesh Alagarsamy Chinnaraja
am 13 Okt. 2022
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 Kommentar
dpb
am 7 Okt. 2022
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...
Akzeptierte Antwort
Dhanesh Alagarsamy Chinnaraja
am 13 Okt. 2022
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!