EXP8 Frequencyresponse Students
EXP8 Frequencyresponse Students
Frequency Response
Objectives:
1. To be able to plot the frequency response of a system with the aid of MATLAB.
2. To be able to use frequency response to analyze a systems stability, transient and steady state
error performance.
Introductory Information:
Nyquist diagram
Frequency response is a system can be represented either as a polar plot or as a separate magnitude and
phase diagrams. A frequency response as a polar plot, the magnitude response is the length of a vector
drawn from the origin to a point on the curve. The polar plot of G(s)H(s) is known as Nyquist diagram.
Nyquist(sys) draws the nyquist plot of the LTI model SYS (created with either TF, ZPK, SS, or FRD). The
frequency range and number of points are chosen automatically.
Bode plots
Separate magnitude and phase diagrams, sometimes referred to as Bode plots, present the data with
frequency explicitly enumerated along the abscissa. The magnitude curve can be a plot of long magnitude
vs. long frequency.
Bode(sys) draws the Bide plot of the LTI model SYS (created by TF, ZPK, SS, or FRD). The frequency range
and number of points are chosen automatically.
Bode(sys1.sys2,) show the bode plot of multiple LTI models of sys1, sys2, on a single plot.
Frequency response methods also give transient response information. By defining such frequency
response quantities as gain margin and phase margin, the transient response can be analyzed or designed.
Gain margin is the amount that the gain that can be increased by the system before instability occurs if
the phase angle is constant at 180 C. Phase margin is the amount that can be changed by the phase angle
before instability occurs if the gain is held at unity.
(Gm, Pm, Wcg, Wcp)=margin(sys) finds the gain margin (Gm), phase margin (Pm), the gain margin
frequency, where the phase plot goes through 180 degrees(Wcg), and the phase-margin frequency, where
the magnitude plot goes through zero dB(Wcp) of the LTI model SYS.
Exercise 2
Reference: