You are on page 1of 1

# ECE 306 - Discrete Time Signals and Systems, Homework 2

## Linear Constant Coecent Dierence Equations

1. Solve the following problems from the textbook: 2.26, 2.27, 2.30

2. A 5-point moving average filter computes a simple average over five input samples at each n.
(a) Determine the dierence equation for this filter.
(b) Determine and plot the impule response h[n].
(c) Draw the system block diagram.

Z-Transform
1. Solve the following problems from the textbook: 3.4, 3.7
2. Determine the z-transform and sketch the pole-zero plot with the ROC for each of the following sequences:

## (a) x[n] = ( 12 )2 (u[n] u[n 10])

(b) x[n] = ( 12 )|n|
(c) x[n] = 5|n|
(d) x[n] = ( 12 )n cos( n
3 )u[n]

Inverse Z-Transform
1. Solve the following problems from the textbook: 3.14
2. Determine the inverse z-transform of X(z) = z 2 (1 13 z 1 )(1 z 1 )(1 + 2z 2 )
3. Given the z-transform pair x[n] X(z) = 1/(1 2z 1 ) with ROC: |z| < 2, use the z-transform properties to
determine the z-transform of the following sequences:
(a) y[n] = x[n 3]
(b) y[n] = ( 31 )n x[n]
(c) y[n] = x[n] x[n]
(d) y[n] = nx[n]
(e) y[n] = x[n 1] + x[n + 2]
(f) y[n] = x[n] x[n 2]
4. The z-transform X(z) of a causal sequence x[n] has a zero at z1 = 0 and three poles at p1 = 3/4 and p2,3 = (1/2)(1j)
Determine the z-transform Y (z) of the sequence y[n] = x[n + 3], its pole-zero pattern, and its ROC.

MATLAB
1. The filter function in MATLAB can be used to verify the z-transform expression of a causal sequence. Let x[n] be
a causal sequence with a rational X(z) = B(z)/A(z) expression.

## (a) show that the following command

x = filter(b, a, [1, zeros(1, N)]);
will generate the first N + 1 samples of x[n] where b and a contain polynomial cocients of B(z) and A(z)
respectively.
(b) Let x[n] = [( 21 )n + ( 1 n
3 ) ]u[n]. Use pen and paper to determine X(z)
(c) Verify your expression above using MATLAB by comparing the output of the filter function with the given
sequence.