Next: About this document ...
| ELEC 6410 |
Project #2 |
Fall 2009 |
|
| Assigned: 9/02/09 |
Due: 9/09/09 |
|
Difference Equations and Impulse Responses
This project will help you to become more familiar with difference
equations by exploring their characteristics in both the time and
frequency domains.
- Let
. This
difference equation can be implemented using the
filter
command. Find the vectors a and b that represent
the difference equation above for the filter command.
- Calculate
analytically for the difference equation above. Your
answer should be a functional expression.
Hint: You may find the
residuez
function useful. (I've posted some further discussion that might help you here.)
- Create an impulse (not a pulse!) of length 100. Recall that systems described
by linear constant-coefficient difference equations are LSI systems
(assuming initial rest conditions). Characterize the LSI system above
by finding the first 100 points of
the impulse response using
filter,
and plot the result with stem.
- Examine two ways of implementing an LSI system:
- Create a pulse of width 8 and zeropadded to a total length of
100.
- Find the response of the system to this input pulse using
conv
by convolving with the impulse response.
- Find the response of the system to this input pulse using
filter
by filtering with the difference equation.
- Explain any differences you observe between these two results.
- Examine the frequency response:
- Find an expression for the frequency response of the system
described by the difference equation given.
- Use the command
freqz
to plot the magnitude and phase response of the system.
- Is this
system a highpass, a lowpass, or a bandpass filter?
- Examine the response to two sine waves:
- Create two signals
and
, both of length 100.
- Filter each signal separately
with the filter defined in Step 1, and plot them.
- Explain the outputs you observe in
terms of the frequency magnitude response of the system.
Write a concise report describing your findings following
my format instructions. The report should
contain a concise description of your results. Please include all plots generated, but make them as small as you can without sacrificing clarity.
Be sure to answer all questions.
NOTE: All out-of-class work is to be done independently. Sharing of programming tips and discussing general concepts is ok. Collaborating on experiments or code-writing is not. Any such collaboration on these assignments will be considered an act of dishonesty and will be treated accordingly.
For further help:
Next: About this document ...
Stan Reeves
2009-09-02