DSP - Assignment 3
DSP - Assignment 3
Assignment 3
Fourier Analysis
3. Determine the transfer function, 𝐻(𝜔), for each of the following systems:
(a) 𝑦(𝑛) = 𝑥(𝑛) + 2𝑥(𝑛 − 1) + 𝑥(𝑛 − 2)
(b) 𝑦(𝑛) = 𝑥(𝑛) + 2𝑥(𝑛 − 1) + 𝑥(𝑛 − 2) − 0.5𝑦(𝑛 − 1) + 0.25𝑦(𝑛 − 2)
(c) 𝑦(𝑛) = 2𝑥(𝑛) + 𝑥(𝑛 − 1) − 0.25𝑦(𝑛 − 1) + 0.25𝑦(𝑛 − 2)
4. Write a MATLAB code to compute the transfer function of discrete-time system given
by an LCCDE. Use this program to plot the magnitude and phase of each system in
Problem 3.
1, 𝑛 = −1, 1
𝑥(𝑛) = (0.5)𝑛𝑢(𝑛) and ℎ(𝑛) = {2, 𝑛=0
0, elsewhere