y[n] = x[n] + x[n - 1] for n ≥ 0
As a necessary condition for LTI properties to hold, the LTI system must be at rest. This means that the initial condition x[-1] = 0.
The LTI system is a version of the two-point averaging filter in which the coefficients of 1/2 and 1/2 have been scaled by 2.
h[n] = d[n] + d[n - 1] for n ≥ 0
ystep[n] = u[n] + u[n - 1] for n ≥ 0
j w oo -j w n 1 -j w n -j w -j w H(e ) = Sum h[n] e = Sum h[n] e = h[0] + h[1] e = 1 + e n = -oo n=0We can factor the frequency response into magnitude-phase form per lecture slide 9-9 by factoring out the phase shift corresponding to the delay equal to the index of the midpoint of the impulse response, which is at an index of 1/2:
j w -j (w/2) j (w/2) -j (w/2) -j (w/2) H(e ) = e ( e + e ) = e ( 2 cos(w/2) ) j w -j (w/2) H(e ) = 2 cos(w/2) e
freqz( [1 1] );will plot the magnitude and phase response for an LTI system with impulse response d[n] + d[n - 1]. The magnitude response, by default, will be plotted in decibels vs. discrete-time frequency, where AdB = 20 log10 | A |.
As in problem 6.1(a), we can factor the frequency response into magnitude-phase form per lecture slide 9-9 by factoring out the phase shift corresponding to the delay equal to the index of the midpoint of the impulse response, which is at an index of 1 and hence the phase shift is exp(-j w).
When we cascade two LTI systems with impulse responses h1[n] and h2[n], as we had seen on lecture slide 8-11 and in Signal Processing First Section 5-7,
y[n] = h1[n] * h2[n] * x[n]
We can write the input-output relationship for the cascade of two LTI systems as a single LTI system
y[n] = h[n] * x[n]
where
h[n] = h1[n] * h2[n]