MATLAB Answers

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

1 view (last 30 days)
Shane
Shane on 17 Dec 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

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.