Specifications
5 Application Examples
5-2
Examples of Application Techniques
This section contains a series of examples that illustrate techniques that are
useful for implemented GUIs. Each example provides a link to the actual GUI
in the GUIDE Layout Editor and a link to the application M-file displayed in
the MATLAB editor.
Note It is important that you use the links in each section to display the
layouts and M-files when reading these examples. To do this, you must be
running MATLAB and using the MATLAB Help browser.
•GUI with Multiple Axes – analyze data and generate frequency and time
domain plots in the GUI figure.
•Launching a Dialog to Confirm an Operation – display a second figure from
your GUI to ask a question. This modal dialog blocks MATLAB until the user
responds, then returns the answer to the calling GUI.
•List Box Directory Reader – list the contents of a directory, navigate to other
directories, and define what command to execute when users double-click on
a given type of file.
•Accessing Workspace Variables from a List Box – list variables in the base
MATLAB workspace from a GUI and plot them. This example illustrates
multiple item selection and executing commands in a different workspace.
•A GUI to Set Simulink Model Parameters – set parameters in a Simulink
model, save and plot the data, and implement a help button.
•An Address Book Reader – read data from MAT-files, edit and save the data,
and manage GUI data using the
handles structure.