Ayush Verma
Ayush Verma
Ayush Verma
clc
clear all
close all
num=[5,12];
den=[6,10,0];
printsys(num,den)
bode(num,den)
grid
title(' Bode plot of transfer function = 5s+12/6s^2+10s')
w=logspace(-1,3,4);
figure()
bode(num,den,w)
title(' Bode plot of transfer function = 5s+12/6s^2+10s')
grid
[GM ,PM,PCF,GCF]=margin(num,den)
Mag=20*log10(GM)
figure()
title(' Bode plot of transfer function = 5s+12/6s^2+10s')
margin(num,den)
grid
num/den =
5 s + 12
-----------
6 s^2 + 10 s
GM = Inf
PM = 81.1924
PCF = NaN
GCF =1.1015
Mag =Inf
Bode plot of transf er f unction = 5s+12/6s 2+10s
40
20
Magnitude (dB) 0
-20
-40
-60
-90
Phase (deg)
-95
-100
-105
-1 0 1 2
10 10 10 10
Frequency (rad/s)
20
Magnitude (dB)
-20
-40
-60
-80
-90
Phase (deg)
-95
-100
-105
-1 0 1 2 3
10 10 10 10 10
Frequency (rad/s)
Bode Diagram
Gm = Inf , Pm = 81.2 deg (at 1.1 rad/s)
40
20
Magnitude (dB)
-20
-40
-60
-90
Phase (deg)
-95
-100
-105
-1 0 1 2
10 10 10 10
Frequency (rad/s)
% Ayush Verma
clc
clear all
num1=[1,2];
num2=[1,4];
num=conv(num1,num2);
den=[1,4,3,0];
nyquist(num,den)
axis([ -4 12 -15 15])
Nyquist Diagram
15
10
5
Imaginary Axis
-5
-10
-15
-4 -2 0 2 4 6 8 10 12
Real Axis