You are on page 1of 2

Signal & System Roll No:2018-EE-011

LAB: 13
TASK 1: Find out zeros & poles of the following transfer functions by using roots command &
also plot them by pzmap command
1.H(z)=z+1/z^2-0.8z+0.81
2.H(z)=2z^2+5z+12/z^2+2z+10

1.CODE:
n= [ 1 1]
d= [ 1 -0.9 0.8]
sys =tf(n,d)
roots(d)
roots(n)
pzmap(sys);

SCOPE:

2.CODE:
n= [ 2 5 12]
d= [ 1 2 10]
sys =tf(n,d)
roots(d)
roots(n)
pzmap(sys);

SCOPE:

Department Of Electronic Engineering


Sir Syed University Of Engineering & Technology
Signal & System Roll No:2018-EE-011

TASK 2: Use the freqz function to evaluate frequency response of transform of task1 -20<w<20
is frequency vector in rads/s, use linspace to generate 200 samples

CODE:
n= [ 1 2 17]
d= [ 1 4 104]
w= linspace(-20,20,200)
freqz(n,d,w)
SCOPE:

TASK 3: write a matlab program to find zeros & poles of the system given by:
y(n)=x(n)+2x(n-1)-0.9y(n-1).

CODE:
syms w n
x = sin(w*n)
y=ztrans(x,n,w);

Result:
(z*sin(w))/(z^2 - 2*cos(w)*z + 1)

Code:
syms w n
x = -1.25+(3.5*n*(exp(-2*n)))+(1.25*(exp(-2*n)));
y=ztrans(x);
disp(y)

Result:
>> laplace

(5*z)/(4*(z - exp(-2))) - (5*z)/(4*(z - 1)) + (7*z*exp(2))/(2*(z*exp(2) - 1)^2)

Department Of Electronic Engineering


Sir Syed University Of Engineering & Technology

You might also like