MATLAB Examples

Open and Run The Example

To open the example in GUIDE, click the button on this page. To run the app and allow it to show the contents of the current folder, click the Run Figure (green play button) at the top of the GUIDE window.

Alternatively, you can call the lbox2 function in the Command Window with the 'dir' name-value pair argument. The name-value pair argument allows you to list the contents of any folder. For example, this command lists the files in the C:\ folder on a Windows® system:

lbox2('dir','C:\')

Note: Before you can call lbox2 in the Command Window, you must save the GUIDE files in a folder on your MATLAB® path. To save the files, select File > Save As in GUIDE.