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.
Design FIR lowpass filter using Hamming window for following specifications:
As order of the filter is not given hence it has to be calculated using firpmord function as given below: ...