MATLAB Creating Graphical User Interfaces

(Barry) #1
UI for Setting Simulink Model Parameters

UI for Setting Simulink Model Parameters


In this section...
“About the Example” on page 9- 57
“How to Use the UI” on page 9- 58
“Run the Program” on page 9- 59
“Program the Slider and Edit Text Components” on page 9- 60
“Run the Simulation from the UI” on page 9- 62
“Remove Results from List Box” on page 9- 64
“Plot Results Data” on page 9- 64
“The Help Button” on page 9- 66
“Close the UI” on page 9- 66
“The List Box Callback and Create Function” on page 9- 67

About the Example


This example shows how to create a GUIDE UI that sets the parameters of a Simulink
model, runs the simulation, and plots the results in a figure window. The following figure
shows the UI after running three simulations with different values for controller gains.
Free download pdf