Plotting of Bode Plots, Root Locus and Nyquist Plots
Plotting of Bode Plots, Root Locus and Nyquist Plots
Plotting of Bode Plots, Rootlocus and nyquist plots for the given
transfer function
Exp No: 4(a) Date:
Aim:
To obtain the bode plot for a given transfer function using MATLAB.
Theory:
In any frequency response we plot magnitude M and angle Ø against input frequency
‘ω’. When ω is varied from 0 to ∞, there is a wide range of variations in M and Ø so it
becomes difficult to accommodate all such variations with linear scale hence we use
logarithmic scale. Thus in bode plot logarithmic values of magnitude are to be plotted against
logarithmic values of frequencies.
Bode plot consists of two plots:
1. Magnitude expressed in logarithmic values of frequency called Magnitude plot.
2. Phase angle in degrees against logarithmic values of frequency called Phase angle plot
clc
clear all
num=[10 10]
den=[1 7.05 12.35 0.6 0]
system=tf(num,den);
bodeplot(system)
10 10
den =
>> system=tf(num,den)
Transfer function:
10 s + 10
----------------------------------
s^4 + 7.05 s^3 + 12.35 s^2 + 0.6 s
>> bodeplot(system)
Result:
Bode plot are drawn for the given transfer function using MATLAB.
Aim:
To obtain the Root locus plot for a given transfer function using MATLAB.
.
Theory:
Root locus is a graphical method in which movement of poles in the s-plane is
sketched when a particular parameter of system is varied from zero to infinity. The parameter
which is usually varied is the gain but any other parameters may be varied.
clc
clear all
num=[10 10]
den=[1 7.05 12.35 0.6 0]
system=tf(num,den);
rlocus(system)
Output File
num =
10 10
den =
>> system=tf(num,den)
Transfer function:
10 s + 10
----------------------------------
s^4 + 7.05 s^3 + 12.35 s^2 + 0.6 s
>> rlocus(system)
Aim:
To obtain the nyquist plot for a given transfer function using MATLAB.
Theory:
The nyquist method handles the system with time delay without the necessity of
approximation and hence yields exact results about both absolute and relative stability of the
system.
Program for Nyquist Locus
clc
clear all
num=[10 10]
den=[1 7.05 12.35 0.6 0]
system=tf(num,den);
nyquist(system)
OUTPUT FILE
num =
10 10
den =
>> system=tf(num,den)
Transfer function:
10 s + 10
----------------------------------
s^4 + 7.05 s^3 + 12.35 s^2 + 0.6 s
>> nyquist(system)