matlabch09
matlabch09
Introduction to MATLAB 7
for Engineers
William J. Palm III
Chapter 9
Simulink
Copyright © 2005. The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
.
Simulation diagrams for y 10 f (t ). Figure 9.1–1
9-2
.
(a) The summer element. (b) Simulation diagram for y f (t)
10y. Figure 9.1–2
9-3
The Simulink Library Browser. Figure 9.2–1
9-4
.
Simulink model for y 10 sin t. Figure 9.2–2
9-5
Note that blocks have a Block Parameters window that
opens when you double-click on the block.
9-6
Note that most blocks have default labels.
9-7
Simulink model using the Clock and To Workspace blocks.
Figure 9.2–3
9-8
Double-click on the To Workspace block. You can
specify any variable name you want as the output;
the default is simout. Change its name to y.
9-10
.
Simulink model for y 10y f (t ). Figure 9.2–4
9-12
Simulink model of the system having two masses. Use of the
State-Space block and the Step block. Figure 9.3–2
9-13
When you are connecting inputs to the State-Space
block, care must be taken to connect them in the
proper order.
9-14
The saturation nonlinearity. Figure 9.4–1
9-15
Example 9.4-1: A rocket-propelled sled. Figure 9.4–2
9-16
Rocket-propelled sled example. Simulation diagram for
(80/9) cos( t 2/ 100). Figure 9.4–3
9-17
Simulink model for (80/9) cos( t 2/ 100). Figure 9.4–4
9-18
Simulink model for (80/9) cos( t 2/ 100) with a Saturation
block. Figure 9.4–5
9-19
Speed response of the sled for 0 and 0. Figure 9.4–6
9-20
The relay function. (a) The case where On Off. (b) The case
where On Off. Figure 9.4–7
9-21
An armature-controlled dc motor, Example 9.4-2. Figure 9.4–8
9-22
Simulink model of a relay-controlled motor. Figure 9.4–9
9-24
A dead-zone nonlinearity. Figure 9.5–1
9-25
The Simulink model of dead-zone response. Figure 9.5–2
9-26
Modification of the dead-zone model to include a Mux block.
Figure 9.5–3
9-27
The response of the dead-zone model. Figure 9.5–4
9-28
Modification of the dead-zone model to export variables to
the MATLAB workspace. Figure 9.5–5
9-29
A pendulum. Figure 9.6–1
9-30
Simulink model of nonlinear pendulum dynamics.
Figure 9.6–2
9-34
Simulink model of the hydraulic system shown in
Figure 9.7–2. Figure 9.7–3
9-35
The Subsystem block. Figure 9.7–4
9-36
To create a subsystem block, create a “bounding box”
surrounding the diagram.
9-38
Simulink model of the system shown in Figure 9.7–5.
Figure 9.7–6
9-40
A vibrating system. Figure 9.7–8
9-41
An armature-controlled dc motor. Figure 9.7–9
9-42
The “Transfer Fcn (with initial outputs)” block
9-43
Simulink model of a hydraulic system with dead time.
Figure 9.8–1
9-44
Four additional Simulink elements that enable
us to model a wide range of nonlinearities and
input functions, namely,
9-45
Single-mass model of a vehicle suspension. Figure 9.9–1
9-46
Nonlinear spring function. Figure 9.9–2
9-47
Nonlinear damping function. Figure 9.9–3
9-48
Road surface profile. Figure 9.9–4
9-49
Simulation diagram of a vehicle suspension model.
Figure 9.9–5
9-50
The simulation diagram shows that we need to
compute the derivative dydt.
9-51
Simulink model of a vehicle suspension system.
Figure 9.9–6
The MATLAB Fcn block is slower than the Fcn block, but
its output can be an array, and it can call a function file.
9-53
Output of the Simulink model shown in Figure 9.9–6.
Figure 9.9–7
9-54
The following slides are figures from the
chapter’s homework problems.
9-55
Figure P26
9-56
Figure P30
9-57
Figure P34
9-58
Figure P35
9-59