You are on page 1of 12

DSP-LAB-5-Task

SUBMITTED BY: SHAZIR ALI KHAN


REG NO # SP18-BTN-004
SUBMITTED TO: Maam Zenab Fazal
DATE: 29 August, 2020
Questions 1- Plot the following pole zero plots and also find their transfer
function.
zeros=[0]
poles=[-2;1/2]
zplane(zeros,poles)
[num,den]=zp2tf(zeros,poles,1)
sys=filt(num,den)

FIGURE:

sys =

z^-1
-------------------
1 + 1.5 z^-1 - z^-2

Discrete-time transfer function.


zeros=[-1]
poles=[1/3;2;3]
zplane(zeros,poles)
[num,den]=zp2tf(zeros,poles,1)
sys=filt(num,den)

FIGURE:

sys =

z^-2 + z^-3
------------------------------------
1 - 5.333 z^-1 + 7.667 z^-2 - 2 z^-3

Discrete-time transfer function.


Questions 2- Plot the following pole zero plots and also find their transfer
function.
zero=[1/2j;-1/2j];
pole=[1/4];
zplane(zero,pole);
[num,den]=zp2tf(zero,pole,1)
sys=filt(num,den)

FIGURE:

sys =

1 + 0.25 z^-2

-------------

1 - 0.25 z^-1
Discrete-time transfer function.

Questions 3- Plot the following pole zero plots and also find their transfer
function.
zero=[2/3];
pole=[2/3+2/3j;2/3-2/3j];
zplane(zero,pole);
[num,den]=zp2tf(zero,pole,1)
sys=filt(num,den)

FIGURE:
sys =

z^-1 - 0.6667 z^-2

----------------------------

1 - 1.333 z^-1 + 0.8889 z^-2

Discrete-time transfer function.

Question 4- Find the inverse z-transform of the following expression and from
pole zero plot or from transfer function determine, whether it is FIR or IIR system.

(𝑧) = 1 − 1 /2 𝑧 −1 / (1 + 3 /4 𝑧 −1 + 1 /8 𝑧 −2) |𝑧| > 1 /2

zeros=[1;-1/2]
poles=[1;3/4;1/8]
zplane(zeros,poles)
syms z
h(z) = (1-1/2*z^-1)/(1+3/4*z^-1+1/8*z^-2);
iztrans(h(z))

FIGURE:
Question 5- Find the inverse z-transform of the following expression and from
pole zero plot or from transfer function determine, whether it is FIR or IIR system.

(𝑧) = 1 – 1/ 2 𝑧 −1 − 1 /3 𝑧 −2 / (1 – 1/ 4 𝑧 −2) |𝑧| > 1/ 4

zeros=[1;-1/2;-1/3]
poles=[1;-1/4]
zplane(zeros,poles)
syms z
h(z) = (1-1/2*z^-1-1/3*z^-2)/(1-1/4*z^-2);
iztrans(h(z))

FIGURE:
Question 6- A causal LTI system has the system function (𝑧).

(𝑧) = 1 + 2𝑧 −1 + 𝑧 −2 / (1 − 1 /2 𝑧 −1) (1 – 1/ 4 𝑧 −2) (1 − 𝑧 −1) |𝑧| > 1

a. Plot its pole zero plot.

b. Find the impulse response h[n].


zeros=[1;2;1]
poles=[1;-3/2;1/4;1/2;-1/8]
zplane(zeros,poles)
figure
impz(zeros,poles)
syms z
h(z) = (1+(2*z^-1)+(1*z^-2))/((1-1/2*z^-1)*(1-1/4*z^-
2)*(1-1*z^-1));
iztrans(h(z))
FIGURE:

FIGURE:
Question 7- A LTI system has the system function (𝑧).

(𝑧) = 𝑧 −1 + 3𝑧 −2 + 1/ 2 𝑧 − 3𝑧 2 − 4𝑧 3 / 1

a. Plot its pole zero plot.

b. Find the impulse response h[n].

zeros=[1;3;1/2;-3;-4]
poles=[1]
zplane(zeros,poles)
figure
impz(zeros,poles)
syms z
h(z) = (z^-4+(3*z-5)+(1/2*z-2)-(3*z-1)-4);
iztrans(h(z))

FIGURE:

FIGURE:

You might also like