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

3 ビュー (過去 30 日間)
Shane
Shane 2012 年 12 月 17 日
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 件)

カテゴリ

Find more on Migrate GUIDE Apps in Help Center and File Exchange

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by