<< Chapter < Page Chapter >> Page >
This module is part of the collection, A First Course in Electrical and Computer Engineering . The LaTeX source files for this collection were created using an optical character recognition technology, and because of this process there may be more errors than usual. Please contact us if you discover any errors.

Consider the exponential moving average filter

x n = k = 0 a k u n - k ; a = 0 . 98 .
  1. Write out a few terms of the sum to show how the filter works.
  2. Write x n as a recursion and discuss the computer memory required to implement the filter.
  3. Compute the complex frequency response H ( e j θ ) for the filter.
  4. Write a MATLAB program to plot the magnitude and phase of the complex frequency response H ( e j θ ) versus θ for θ = - π to + π in steps of 2 π 64 Do this for two values of a , namely, a = 0 . 98 and a = - 0 . 98 . Explain your findings.
  5. Write a MATLAB program to pass the following signals through the filter when a = 0 . 98 :
    1. u n = δ n
    2. u n = ξ n
    3. u n = ξ n cos 2 π 64 n
    4. u n = ξ n cos 2 π 32 n
    5. u n = ξ n cos 2 π 16 n
    6. u n = ξ n cos 2 π 8 n
    7. u n = ξ n cos 2 π 4 n
    8. u n = ξ n cos 2 π 2 n .

Plot the outputs for each case and interpret your findings in terms of the complex frequency response H ( e j θ ) . Repeat step 5 for a = - 0 . 98 . Interpret your findings.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, A first course in electrical and computer engineering. OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10685/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'A first course in electrical and computer engineering' conversation and receive update notifications?

Ask