FUNCTION REFERENCE

filtord

Order of a digital filter.

Order of a digital filter.

Syntax

n = filtord(b,a)

Syntax

n = filtord(sos)

Syntax

n = filtord(d)

n is the degree in z^-1 of B(z)/A(z) without pole/zero cancellation: trailing zero coefficients are ignored, leading zeros count as delay. filtord(b) uses a = 1. A K-by-6 matrix is read as second-order sections [b0 b1 b2 a0 a1 a2] (a single 1-by-6 row only when a0 = 1); its order is the larger of the summed numerator and denominator section degrees. d is a digitalFilter from designfilt.

Example

n = filtord([1 2 1],[1 -0.5])   % 2

Example

n = filtord([1 1 0 1 0.5 0; 1 0 1 1 0 0.25])   % 3

Example

n = filtord(fir1(20,0.3))   % 20

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.