436 Chapter 7 / Control Systems Analysis and Design by the Frequency-Response MethodThe command
nyquist(num,den)
draws the Nyquist plot of the transfer function
wherenumanddencontain the polynomial coefficients in descending powers of s. Other
commonly used nyquistcommands are
nyquist(num,den,w)
nyquist(A,B,C,D)
nyquist(A,B,C,D,w)
nyquist(A,B,C,D,iu,w)
nyquist(sys)
The command involving the user-specified frequency vector w, such as
nyquist(num,den,w)
calculates the frequency response at the specified frequency points in radians per
second.
When invoked with left-hand arguments such as
[re,im,w] = nyquist(num,den)
[re,im,w] = nyquist(num,den,w)
[re,im,w] = nyquist(A,B,C,D)
[re,im,w] = nyquist(A,B,C,D,w)
[re,im,w] = nyquist(A,B,C,D,iu,w)
[re,im,w] = nyquist(sys)
MATLAB returns the frequency response of the system in the matrices re,im,andw.
No plot is drawn on the screen. The matrices reandimcontain the real and imaginary
parts of the frequency response of the system, evaluated at the frequency points speci-
fied in the vector w. Note that reandimhave as many columns as outputs and one row
for each element in w.
EXAMPLE 7–10 Consider the following open-loop transfer function:
Draw a Nyquist plot with MATLAB.
Since the system is given in the form of the transfer function, the commandnyquist(num,den)
may be used to draw a Nyquist plot. MATLAB Program 7–5 produces the Nyquist plot shown
in Figure 7–36. In this plot, the ranges for the real axis and imaginary axis are automatically
determined.G(s)=1
s^2 +0.8s+ 1G(s)=
num(s)
den(s)
Openmirrors.com