Professional Documents
Culture Documents
Simulation in Matlab
A Dynamic System
Let a 2 DoF and 4th order LTI system be
+ 2 + 9 =
+ 2 + 2.25 =
Which may be represented in
1. State space
= +
=
With = 1 2 3 =
1
9/28/2017
A Dynamic System in SS
State space representation in matrix form is
2 0 1 0 0 0 0
1 3 1
= 9 2 + = 0 0 0 1 0
2 + 1
2 2 9 0 2 0
3 2.251 23 + 0 2.25 0 2 3 1
Output
= 0 1 0 0
with
0 1 0 0 0
= 0 0 0 1 B= 0 C= 0 1 0 0
9 0 2 0 1
0 2.25 0 2 1
C= 0 1 0 0
2
9/28/2017
3
9/28/2017
4
9/28/2017
Define input signal and time for the 2nd Linear Simulation Tool
t=0:0.01:10
Use the Design Signal button to Insert Square wave
Click the Simulate button
5
9/28/2017
6
9/28/2017
Simulation in Simulink
Using S-function Builder
A Dynamic System
Use to simulate dynamic systems
Let a twodof system be
+ 2 + 9 =
+ 2 + 2.25 =
Turn it to
= (, )
With = 1 2 3 =
2
1 3
= 9 2 +
2 2
3 2.251 23 +
Output
=
7
9/28/2017
8
9/28/2017
Outputs
9
9/28/2017
Derivatives
2
1 3
= 9 2 +
2 2
3 2.251 23 +
10
9/28/2017
Step Response
Reference
http://ctms.engin.umich.edu/CTMS/index.php?aux=Home
11