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

1 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by