Example Problems and Solutions 559Since the phase margin of the compensated system is 50°, the gain margin is 12 dB, and the
static velocity error constant is 10 sec–1, all the requirements are met.
We shall next investigate the transient-response characteristics of the designed system.Unit-Step Response: Noting thatwe haveTo determine the denominator polynomial with MATLAB, we may proceed as follows:
Definec(s)=40(s+0.4)(s+0.2)=40s^2 +24s+3.2b(s)=s(s+1)(s+4)=s^3 +5s^2 +4sa(s)=(s+4)(s+0.02)=s^2 +4.02s+0.08=
40(s+0.4)(s+0.2)
(s+4)(s+0.02)s(s+1)(s+4)+40(s+0.4)(s+0.2)C(s)
R(s)=
Gc(s)G(s)
1 +Gc(s)G(s)Gc(s)G(s)=40(s+0.4)(s+0.2)
(s+4)(s+0.02)s(s+1)(s+4)MATLAB Program 7–32
num1 = [40 24 3.2];
den1 = [1 9.02 24.18 16.48 0.32 0];
bode(num1,den1)
title('Bode Diagram of Gc(s)G(s)')
Frequency (rad/sec)Bode Diagram of Gc(s)G(s)− 300− 250− 200− 150− 100− 500− 100Phase (deg); Magnitude (dB)− 5005010010 −^410 −^310 −^210 −^1100101102Figure 7–153
Bode diagram of the
open-loop transfer
functionGc(s)G(s)
of the compensated
system.