O'Reilly logo

MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] by Manoj Kumar Sharma, Ashok Kumar Goel, Raj Kumar Bansal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15.14. FIR Filter Design Using FDA Tool

FIR filters are also designed in same way as IIR filters in FDA Tool of MATLAB. However, in case of FIR filter design, the order of the filter is to be provided by the user. Hence, order has to be calculated if not specified. To calculate the order, appropriate formula or MATLAB functions firpmord and kaiserord can be used.

Example 15.29.

Design FIR lowpass filter using Hamming window for following specifications:

Passband edge2 rad/sec
Stopband edge4 rad/sec
Max. passband ripple0.1 dB
Min. stopband attenuation40 dB
Sampling frequency20 rad/sec
  1. Show magnitude response.

  2. Show impulse response.

Solution:

As order of the filter is not given hence it has to be calculated using firpmord function as given below: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required