Programs On Bode Plot - Control Systems Lab - System Analysis - MSRIT - RIT

Hi!

Programs On Bode Plot :

1 -

1)      
GH=  5
  ---------------------------
  s^4 + 4 s^3 + 14 s^2 + 20 s


Editor -

 clc
clear all
close all
n=5;
d=conv([1 2 0],[1 2 10]);
sys=tf(n,d)
bode(sys);
grid;
figure;
margin(sys)
[Gm,Pm,wcg,wcp]=margin(sys);
GM_dB=20*log10(Gm)
display(Pm);
display(wcg);
display(wcp);

(run)

Command Window -
sys =

               5
  ---------------------------
  s^4 + 4 s^3 + 14 s^2 + 20 s

Continuous-time transfer function.


GM_dB =

   19.0848


Pm =

   80.0220


wcg =

    2.2361


wcp =

    0.2493







2 -
Editor - 

clc;
clear all;
close all;
n1=[200 600];
d1=conv([1 2 0],[1 4 60])
OLSYS=tf(n1,d1)
[n2,d2]=feedback(n1,d1,1,1);
CLSYS=tf(n2,d2)
p=roots(d2)
pzmap(CLSYS);
figure;
bode(OLSYS,[0.1,100]);
grid;
[GM,PM,wcg,wcp]=margin(OLSYS)
GM_dB=20*log10(GM)


(run)

Command Window
d1 =

     1     6    68   120     0


OLSYS =

          200 s + 600
  ----------------------------
  s^4 + 6 s^3 + 68 s^2 + 120 s

Continuous-time transfer function.


CLSYS =

             200 s + 600
  ----------------------------------
  s^4 + 6 s^3 + 68 s^2 + 320 s + 600

Continuous-time transfer function.


p =

  -0.1467 + 7.4497i
  -0.1467 - 7.4497i
  -2.8533 + 1.6326i
  -2.8533 - 1.6326i


GM =

    1.0915


PM =

   16.0863


wcg =

    7.5089


wcp =

    6.9288


GM_dB =

    0.7606






SHARE

Rishabh Chatterjee

Hi. I’m Engineering Student. I’m YouTuber. I’m Trying to find my passion.Sharing my life experiences with the world.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Featured post

BENGALURU TO KANNUR

Welcome to Part 1 Of My Bengaluru To Kannur Trip.After almost 6 months finally im going on a road trip.I Hope you all enjoy this video.