2. Consider the system defined by the relation y[n] = x[n] +2x[n− 1] + x[n-2]
(a) Obtain an expression for the frequency response of the system
(b) Graph the system frequency response (magnitude and phase) using the freqz command in MATLAB (attach code listing and output)
(c) Determine the output when the input is the signal x[n] = 10+4 cos(0.5πn+π/4)
(d) Determine the output with the input is the unit impulse function x[n] = δ [n].
(e) Determine the output with the input is the unit step function z[n] = u[n].
(more…)