clear
clc

global G1 G2 G3 num den

w1  = 0.1; 
w2  = 10000; 

k       =  1;
wcf     =  5;
T       =  1/wcf;
xi      =  0.2;
wn      =  2;

num     = 1000*[1,1];

den     = conv([1,10],[1,100]);

G1     = tf(num,den)


num     = 100*[1,10];

den     = conv([1,1],[1,100]);

G2     = tf(num,den)

num     = 0.1*[1,100];

den     = conv([1,1],[1,10]);

G3     = tf(num,den)


figure(1)

bode(G1,'b',{w1,w2});

grid;

figure(2)

nyquist(G1,'b',{w1,w2});


figure(3)

bode(G2,'r',{w1,w2});

grid;

figure(4)

nyquist(G2,'r',{w1,w2});


figure(5)

bode(G3,'g',{w1,w2});

grid;

figure(6)

nyquist(G3,'g',{w1,w2});


