[go: up one dir, main page]

0% found this document useful (0 votes)
43 views3 pages

Lab 5

Download as doc, pdf, or txt
Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1/ 3

Lab #5 (Convolution in discrete time-2)

In this lab, you will test couple of good properties of DT convolution. Using the built-in
conv, we will test properties but you may use your own convolution function in
previous lab.

1. Obtain a total impulse response.

In this step, you can obtain the total impulse response for a series and/or a parallel
connection of systems. It can be obtained by using the commutative and distributive
properties of convolution. Find out the total impulse response ht [n] for the following
system. In the following systems, use random numbers for h1, h2, and x. Random
numbers can be obtained by the built-in function rand. Check the help file for rand.

(a) (b)

Once you obtained the total impulse response, ht [n] , for (a) system, plot the output
with y[ n] ht [ n] * x[ n] . Next step is to find y[n] based on the equation (1).
Superimpose the result of y[ n] ht [ n] * x[ n] on the result of equation (1). Notice that
two results must be same because of commutative property of convolution. Now, do the
same thing for the system (b). Find out the ht [n] of (b) system and plot
y[ n] ht [ n] * x[ n] . Then, superimpose the result of y[ n] ht [n] * x[n] onto the
results of equation (2). Notice that two results must be same because of distributive
property of convolution.

y[ n] h2 [ n] * ( h1 [ n] * x[ n]) for (a) system --- (1)


y[ n] ( h1 [n] * x[ n]) ( h2 [ n] * x[n]) for (b) system. ---(2)
2. Obtain a delayed response (or output) of an input.

In this step, you can verify that impulse functions in a system function lead to a delayed
output of the input. You must be very careful in the time index of each input to get a
right result. To do convolution with correct time indices, you better use your own
convolution you made in previous lab.

where x[n]=u[n+2]- u[n-3]


and h[n] = [ n 2]

From your result, what conclusions you can have? Explain your result.

3. Obtain the system function (i.e., h[n]) for an unknown system

In this step, we will obtain the system function of an unknown system, h[n] (Suppose
that h[n] is unknown even though it is a random number in this lab). Explain how you
can obtain the unknown h[n]. Write MATLAB code to obtain the unknown h[n].

where h=rand(1,10);

Compare the h[n] of random number with the h[n] you obtain. Overlap two results on
the same plot.

4. Lab report

For a lab report, do the same things with the Step 1 for the following system. Submit all
documents and plots supporting your design. You have to find out the total system
response, ht [n] . Complete the following equation 2 using the h1, h2, h3, and h4.
Compare you result of the equation 1 with the result obtained by the equation 2.

y[ n] ht [ n] * x[ n] equation 1
y[ n] ______________________ * x[n] equation 2

You might also like