Expt 6 Frequency and Stability
Expt 6 Frequency and Stability
Performance Objective
To use MATLAB to analyze the frequency and stability of a system given it’s transfer function.
Procedure
Frequency response plots show the complex values of a transfer function as a function of frequency.
In the case of linear dynamic systems, the transfer function G is essentially an operator that takes the
input u of a linear system to the output y:
For a continuous-time system, the transfer function relates the Laplace transforms of the input U(s) and
output Y(s):
In this case, the frequency function G(iw) is the transfer function evaluated on the imaginary axis s=iw.
For a discrete-time system sampled with a time interval T, the transfer function relates the Z-transforms
of the input U(z) and output Y(z):
In this case, the frequency function G(eiwT) is the transfer function G(z) evaluated on the unit circle. The
argument of the frequency function G(eiwT) is scaled by the sampling interval T to make the frequency
function periodic with the sampling frequency .
You can plot the frequency response of a model to gain insight into the characteristics of linear model
dynamics, including the frequency of the peak response and stability margins. Frequency-response plots
are available for all linear parametric models and spectral analysis (nonparametric) models.
Bode plot of the model response. A Bode plot consists of two plots. The top plot shows the
magnitude by which the transfer function G magnifies the amplitude of the sinusoidal input.
The bottom plot shows the phase by which the transfer function shifts the input. The
input to the system is a sinusoid, and the output is also a sinusoid with the same frequency.
Plot of the disturbance model, called noise spectrum. This plot is the same as a Bode plot of the
model response, but it shows the output power spectrum of the noise model instead.
(Only in the MATLAB® Command Window)
Nyquist plot. Plots the imaginary versus the real part of the transfer function.
Exercise
Function: Use tf function create transfer function of following form:
Kindly plot the frequency response of the transfer function given above:
Stability Analysis Based on Frequency Response
In retrospect, this experiment depicted how stability and frequency response of a system are
influenced by the input and output of a transfer function using bode and nyquist command in MATLAB.
Both commands converted the data inputted to a graphical representation that gives a different and
better perspective of how frequency response and stability describes a specific transfer function
respectively.