next up previous
Next: About this document

ELEC 0547 Project #3 Fall 1999


Assigned: 10/20/99     Due: 10/27/99

Interpolation

This project will give you some experience with the concept of interpolation by investigating various interpolation schemes and their effects on the interpolated signal.

Exercises

  1. Let . What is the Nyquist rate for this signal? Generate a sequence that is a sampled version of with a sampling period and a length of 1024.

  2. Write a matlab function seqexp(x,L) that implements the expand operation defined in Eq. 4.84 in the text. The function should take a sequence of length N and expand it by a factor L to yield a sequence of length L*N. Expand to by a factor of 4.

  3. Determine the difference equation that implements zero-order hold for interpolating by a factor L=4. Find the vectors a and b that represent this difference equation for the filter command.

  4.   Verify with filter that the output is a zero-order hold version of . To inspect this visually, you may want to plot only the first 20 or so points of the input and output sequences.

  5.   Use dtft (type "help dtft" at the Matlab prompt for help) to compare to . Plot the frequency response of the zero-order hold filter using freqz, and use this to explain the relationship between and .

  6. Repeat the three previous steps for linear interpolation by a factor L=4. Hint: You can find the noncausal impulse response in Eq. 4.92. Use this to determine a causal difference equation by first delaying the impulse response to make it causal and then converting it to a difference equation.

  7. Design a lowpass filter by typing b = 4* fir1 (81,1/4);, and let a=1. Use these definitions of a and b in filter. Repeat Steps 4 and 5 for this filter. Note: The processing may require more time for this filter.

    To do the following exercises, you may need to save the sequence to a sound file using auwrite or wavwrite and then play the sound on the PC.

  8. Use sound to listen to signals , , and the three versions of . Describe and explain what you hear.

  9. Read in an audio file by typing fan = auread ('/opt/demo/audio/fanfare.au'); Listen to the original, the expanded, and the three interpolated signals with L=4. Describe and explain what you hear.

Write a short report describing your findings. The report should contain a concise description of your results. Include listings of your function. Be sure to answer all questions. You are not expected to include in the report all plots which you were required to do; instead, you should summarize in your report the salient features of the unincluded plots.





next up previous
Next: About this document



Stan Reeves
Wed Oct 20 10:07:45 CDT 1999