aa
Section 5–5 / Transient-Response Analysis with MATLAB 185EXAMPLE 5–3 Consider the following system:
Obtain the unit-step response curves.
Although it is not necessary to obtain the transfer-matrix expression for the system to obtain
the unit-step response curves with MATLAB, we shall derive such an expression for reference.
For the system defined bythe transfer matrix G(s)is a matrix that relates Y(s)andU(s)as follows:Taking Laplace transforms of the state-space equations, we obtain(5–37)(5–38)In deriving the transfer matrix, we assume that Then, from Equation (5–37), we get(5–39)Substituting Equation (5–39) into Equation (5–38), we obtainThus the transfer matrix G(s)is given byThe transfer matrix G(s)for the given system becomesHenceSince this system involves two inputs and two outputs, four transfer functions may be defined,
depending on which signals are considered as input and output. Note that, when considering theB
Y 1 (s)
Y 2 (s)R = ≥
s- 1
s^2 +s+6.5
s+7.5
s^2 +s+6.5s
s^2 +s+6.5
6.5
s^2 +s+6.5¥B
U 1 (s)
U 2 (s)R
=
1
s^2 +s+6.5B
s- 1
s+7.5s
6.5R
=
1
s^2 +s+6.5B
s
6.5- 1
s+ 1RB
1
1
1
0
R
= B
1
0
0
1
RB
s+ 1- 6.5
1
sR
- 1
B
1
1
1
0
R
G(s)=C(s I-A)-^1 BG(s)=C(s I-A)-^1 B+DY(s)=CC(s I-A)-^1 B+DD U(s)X(s)=(s I-A)-^1 BU(s)x(0)= 0.Y(s)=CX(s)+DU(s)s X(s)-x(0)=AX(s)+BU(s)Y(s)=G(s) U(s)y=Cx+Dux# =Ax+BuB
y 1
y 2R= B
1
0
0
1
RB
x 1
x 2R + B
0
0
0
0
RB
u 1
u 2R
B
x# 1
x# 2R= B
- 1
6.5
- 1
0
RB
x 1
x 2R+ B
1
1
1
0
RB
u 1
u 2R