9 Examples of GUIDE UIs
Interactive List Box in a GUIDE UI
In this section...
“About the Example” on page 9- 46
“Implement the List Box” on page 9- 47
About the Example
This example shows how to create a list box to display the files in a folder. When you
double click a list item, MATLAB opens the item:
- If the item is a file, MATLAB opens the file using the appropriate application.
- If the item is a folder, MATLAB reads the contents of that folder into the list box.
To get and view the example code:
1 Copy the example FIG-file and code file to your current (writeable) folder and open
the FIG-file in GUIDE and the with the following commands:
copyfile(fullfile(docroot, 'techdoc','creating_guis',...
'examples','lbox2*.*')), fileattrib('lbox2*.*', '+w')
guide lbox2.fig