MATLAB: How to design FIR bandpass filter with hanning window

digital signal processingfilterMATLAB

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?

Best Answer