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

3 vues (au cours des 30 derniers jours)
Shane
Shane le 17 Déc 2012
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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by