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: ...

Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.