Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How do i make a List box directory reader?

1 visualización (últimos 30 días)
Andy
Andy el 7 de Sept. de 2011
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
[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

Respuestas (2)

Walter Roberson
Walter Roberson el 7 de Sept. de 2011
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 el 7 de Sept. de 2011
problem solved

Community Treasure Hunt

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

Start Hunting!

Translated by