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
xn=∑k=0∞akun-k;a=0.98.xn=∑k=0∞akun-k;a=0.98.
(1)
- Write out a few terms of the sum to show how the filter works.
- Write xn as a recursion and discuss the computer memory required to implement the filter.
- Compute the complex frequency response H(ejθ)H(ejθ) for the filter.
- Write a MATLAB program to plot the magnitude and phase of the complex frequency response H(ejθ)H(ejθ) versus θ for θ=-πto+πθ=-πto+π in steps of 2π642π64 Do this for two values of a, namely, a=0.98a=0.98 and a=-0.98a=-0.98.
Explain your findings.
- Write a MATLAB program to pass the following signals through the filter when a=0.98a=0.98:
- un=δnun=δn
- un=ξnun=ξn
- un=ξncos2π64nun=ξncos2π64n
- un=ξncos2π32nun=ξncos2π32n
- un=ξncos2π16nun=ξncos2π16n
- un=ξncos2π8nun=ξncos2π8n
- un=ξncos2π4nun=ξncos2π4n
- un=ξncos2π2nun=ξncos2π2n.
Plot the outputs for each case and interpret your findings in terms of the complex frequency response H(ejθ)H(ejθ). Repeat step 5 for a=-0.98a=-0.98. Interpret your findings.
"Reviewer's Comments: 'I recommend this book as a "required primary textbook." This text attempts to lower the barriers for students that take courses such as Principles of Electrical Engineering, […]"