how to design FIR bandpass filter with hanning window

26 views (last 30 days)
say, I want to design and plot impulse response of a band pass filter with these spec with Hanning window
  • lower stopband edge: 0.3π
  • upper stopband edge: 0.6π
  • lower passband edge: 0.4π
  • upper passband edge: 0.5π
  • stopband attenuation As = 50 dB
  • passband ripple Rp = 0.5 dB
how can I design it?

Accepted Answer

Star Strider
Star Strider on 26 Dec 2015
  2 Comments
Alvin Nguyen
Alvin Nguyen on 26 Dec 2015
Edited: Alvin Nguyen on 26 Dec 2015
hi, I just copy the example code to test and got error, using 2014b version
and by the way, is there anyway test the filter with an input signal for example, x= 5- 5cos(n/2)?
Star Strider
Star Strider on 26 Dec 2015
You have to have the Signal Processing Toolbox to use designfilt. It was introduced in R2014a, so your R2014b Signal Processing Toolbox version will have it.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!