Creating Graphical User Interfaces    

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.

Techniques Used in This Example

This example illustrate a number of GUI building techniques:

View the Layout and Application M-File

Use these links to display the FIG-file in the Layout Editor and the application M-file in the MATLAB Editor. This enables you to see the values of all component properties and to explore how the components are assembled to create the GUI. You can also see the complete code listing.

Click here to display the layout in GUIDE.

Click here to display the application M-file in the editor.


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