Creating Graphical User Interfaces Previous page   Next Page

A GUI to Set Simulink Model Parameters

This example illustrates how to create a GUI that sets the parameters of a Simulink® model. In addition, the GUI can run the simulation and plot the results. The following picture shows the GUI after running three simulations with different values for controller gains.

F14 controller gain editor

Techniques Used in This Example

This example illustrates a number of GUI building techniques:

View Completed Layout and Its GUI M-File

If you are reading this in the MATLAB Help browser, you can click the following links to display the GUIDE Layout Editor and the MATLAB Editor with a completed version of this example. This enables you to see the values of all component properties and to understand how the components are assembled to create the GUI. You can also see a complete listing of the code that is discussed in the following sections.


Previous page  Reading the Selections from the List Box How to Use the GUI (Text of GUI Help) Next page

© 1994-2005 The MathWorks, Inc.