[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