[GUI] How do you fill a Listbox with documents from a specific folder

7 Ansichten (letzte 30 Tage)
I saw a video and a few pieces of code showing how to implement such a dir type listbox, but have never understood it.
If you are able to link or show me simple coding to place documents/files from a folder as elements on a listbox, and explain further.
I would really appreciate it. <3

Akzeptierte Antwort

Matt Fig
Matt Fig am 17 Dez. 2012
Bearbeitet: Matt Fig am 17 Dez. 2012
The most basic example...
D = dir;
uicontrol('style','list',...
'units','pix',...
'pos',[20 20 300 100],...
'string',{D.name})

Weitere Antworten (0)

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!

Translated by