Signal Toolkit - filtord


Function File: n = filtord (b, a)
Function File: n = filtord (sos)

Returns the filter order n for a filter defined by the numerator coefficients, b, and the denominator coefficients, a. It also accepts a filter defined by a matrix of second-order sections, sos.

Example:

 [b, a] = butter (8, 0.5);
 filtord (b, a)