How to calculate the filter order of given specification ??

Illustration
Harper - 2021-01-25T10:06:56+00:00
Question: How to calculate the filter order of given specification ??

Hi, i designed a filter using :   d1=designfilt('lowpassfir','PassbandFrequency',0.45,'StopbandFrequency',0.5,'PassbandRipple',3,'StopbandAttenuation',60,'DesignMethod','equiripple'); When i tried to use fdatool to get the filter coefficient i need to put the filter order but i don't know how to calculate it . can anyone tell me please?

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

There is a way to calculate the order necessary for IIR filters, since they have both numerator and denominator polynomials, but not for FIR filters, with only numerator polynomials. With FIR filters, I usually begin with a filter order of 24, then use freqz to test it, and increase the length until I get the result I want. The window you choose will affect the filter passband shape.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!