In homework problem 6.3(a), a linear time-invariant (LTI) system with input signal x[n] and output signal y[n] is described by
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
oo -n 1 -n -1 H(z) = Sum h[n] z = Sum h[n] z = h[0] + h[1] z n = -oo n=0
-1 H(z) = 1 + z
Zero is at z + 1 = 0 or z = -1.
Pole is at z = 0.
h = [1 1]; zplane(h);Note that zplane has the same syntax as freqz.
Homework problems 6.3(b) and 6.3(c) are very similar.
oo Nh-1 y[n] = h[n] * x[n] = Sum h[k] x[n-k] = Sum h[k] x[n-k] k=-oo k=0where "oo" means infinity and Nh is the length of x[n] in samples. Since the LTI system has a finite impulse response from n = 0 to n = Nh - 1, we can compute the summation for k = 0 to k = Nh - 1:
y[n] = h[0] x[n] + h[1] x[n-1] + h[2] x[n-2] + ... + h[Nh - 1] x[n - (Nh - 1)]We can substitute the values for h[n] = 1 for n = 0, 1, ..., Nh - 1,
y[n] = x[n] + x[n-1] + x[n-2] + ... + x[n - (Nh - 1)]
y[0] = x[0] + x[-1] + x[-2] + ... + x[-(Nh - 1)]The initial conditions are x[-1], x[-2], ..., x[-(Nh - 1)]. They must be set to zero as necessary conditions for LTI system properties to hold.
In discrete time, the convolution of two finite-length signals h[n] and x[n] produces a result that is as long as the sum of the lengths of h[n] and x[n] minus one.
The convolution of two rectangular pulses of equal length will produce a triangle whose width is the twice the width of the rectangular pulse minus one. For more information, please see Handout E Convolving Two Rectangular Pulses.
The convolution of two rectangular pulses of different lengths will produce a trapezoid whose duration is the sum of the durations of the two pulses minus one. The trapezoid corresponds to the five cases of convolving two finite-length signals when flipping-and-sliding one signal across the other: no overlap, partial overlap, complete overlap, partial overlap, and no overlap. The plateau of the trapezoid corresponds to the complete overlap case.
Using the following relationships might be helpful in this problem:
Nmin = min(Nh, Nx)
Nmax = max(Nh, Nx)
conv
command in MATLAB.
y[n] = 0.9 y[n - 1] + 0.1 x[n]
for n ≥ 0. We can find the initial values by computing the first output values:
y[0] = 0.9 y[-1] + 0.1 x[0]
y[1] = 0.9 y[0] + 0.1 x[1]
No initial conditions have arisen other than y[-1].
h[n] = 0.9 h[n - 1] + 0.1 d[n]
for n ≥ 0. We could compute output values manually and infer the impulse response as we did in LTI Example #2 on Lecture Slide 11-4, or use the z-transform.
In the z-domain, Y(z) = H(z) X(z). The z-transform of x[n] = bn u[n] is X(z) = 1 / (1 - b z-1) for |z| > |b|. That is, the region of convergence is |z| > |b|.
For Y(z), the valid values of z must be those that are valid for H(z) and X(z). Hence, the region of convergence for Y(z) is the intersection of the regions of convergence for H(z) and X(z):
C Y(z) = ----------------------- for |z| > max{ |a|, |b| } -1 -1 (1 - a z ) (1 - b z )We can use partial fractions decomposition to express the transfer function as a sum of two first-order terms and then apply the inverse z-transform to each term. See Example 8-10 on page 219.
z - z0 H(z) = C ------ for |z| > |p0| z - p0where C is a non-zero constant.