Example Problems and Solutions 699This is the MATLAB representation of the following state-space equations:A–9–6. Consider the system defined by
whereObtain the response of the system to each of the following inputs:
(a) The rcomponents of uare impulse functions of various magnitudes.
(b) The rcomponents of uare step functions of various magnitudes.
(c) The rcomponents of uare ramp functions of various magnitudes.Solution.
(a)Impulse response:Referring to Equation (9–43), the solution to the given state equation isSubstitutingt 0 =0–into this solution, we obtainLet us write the impulse input u(t)aswherewis a vector whose components are the magnitudes of rimpulse functions applied at
t=0. The solution of the state equation when the impulse input d(t)wis given at t=0is(9–95)
(b)Step response:Let us write the step input u(t)asu(t)=k=eAt x(0-)+eAt Bwx(t)=eAt x(0-)+
3t0 -eA(t-t) Bd(t) wdtu(t)=d(t) wx(t)=eAt x(0-)+
3t0 -eA(t-t) Bu(t)dtx(t)=eAAt-t^0 B xAt 0 B+
3tt 0eA(t-t) Bu(t)dtB=n*r constant matrixA=n*n constant matrixu=control vector (r-vector)x=state vector (n-vector)x# =Ax+Buy =[0 25.04 5.008]C
x 1
x 2
x 3S +[0]u
C
x# 1
x# 2
x3S =C
- 5.0325
1
0
- 25.1026
0
1
- 5.008
0
0
SC
x 1
x 2
x 3S +C
1
0
0
Su