Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do i make a List box directory reader?

조회 수: 1 (최근 30일)
Andy
Andy 2011년 9월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
[EDIT: 20110907 15:29 CDT - merge third duplicate - WDR]
[EDIT: 20110907 11:23 CDT - merge second duplicate - WDR]
[EDIT: 20110907 - merge duplicate - WDR]
i read this, but i really dont understand what to do or what it wants me to do, can someone clarify for me? I am just trying to make a list box which acts as a directory reader. Thanks
[Information merged from duplicate]
asked this before, but now being more specific, i want to make a list box directory reader, where the directory would just be a random folder (say, my desktop). just like the first figure in this link http://www.mathworks.com/help/techdoc/creating_guis/f6-7446.html#brbirpn
do i use function load_listbox(dir_path, handles)? if i do, where? Thanks
another question is, if multiple paths are selected, could i extract that information and use it? Thanks.
[Information from duplicate #2]
So i made a listbox in GUIDE (using the tool bar), and now i want to load directory into this list box, how do i do it? I tried using lbox2(but that just gives me a popup), and then i tried using load_listbox('C:\Users\Andy\Desktop', handles) under the listbox call back. nothing shows up, what am i doing wrong? Thanks
[Information from duplicate #3]
Is it possible to get the path (shown below in the picture, the C:\GUI\tools ) into a string and store it in a variable
thanks

답변 (2개)

Walter Roberson
Walter Roberson 2011년 9월 7일
The example already goes in to several pages of description about what to do and how it works. It is unlikely that someone would take the time to explain it in ever more detail hoping that you happen to understand.
It would be more productive if you were to ask specific questions about parts of the documentation that you do not understand.
Alternately, describe how you want your list box to work, a specification corresponding to the "About the List Box Directory Example" description of how their list box is required to act.

Andy
Andy 2011년 9월 7일
problem solved

Community Treasure Hunt

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

Start Hunting!

Translated by