Learning Control System Using Matlab _ naeem_(Part_03)

Posted on at


num = [0 6 0 1] ;

den = [1 3 3 7] ;

G = tf(num,den) ;

pzmap(G)

grid on

Output

 

a

num = [0 0 1] ;

den = [1 0.2 1] ;

G = tf(num,den) ;

impulse(G)

grid on

Output

b

num = [0 1 0] ;

den = [1 0.2 1] ;

G = tf(num,den) ;

step(G)

grid on

Output

 

c

Step response of “S” is always “1” . So Result of   “b” is same as that of   “a”

Unit Impulse Response

For z = 3

num = [0 5 25] ;

den = [1 3 15] ;

G = tf(num,den) ;

subplot(321);

impulse(G);grid on

For z = 6

num = [0 2.5 25] ;

den = [1 3 15] ;

G = tf(num,den) ;

subplot(322);

impulse(G);grid on

For z = 12

num = [0 1.25 25] ;

den = [1 3 15] ;

G = tf(num,den) ;

subplot(323);

impulse(G);grid on

Unit Step Response

For z = 3

num = [0 5 25] ;

den = [1 3 15] ;

G = tf(num,den) ;

subplot(324);

step(G);grid on

For z = 6

num = [0 2.5 25] ;

den = [1 3 15] ;

G = tf(num,den) ;

subplot(325);

step(G)

grid on

For z = 12

num = [0 1.25 25] ;

den = [1 3 15] ;

G = tf(num,den) ;

subplot(326);

step(G);grid on

Output

 

 

 



About the author

naeem-annex

I'm a Student of BS ELECTRONIC ENGINEERING at FET/DEE/IIUI Islamabad , Pakistan
I like to write blogs on Film Annex

Subscribe 0
160