This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Number of filter states


n = nstates(hd)


Discrete-Time Filters

n = nstates(hd) returns the number of states n in the discrete-time filter hd. The number of states depends on the filter structure and the coefficients.


collapse all

Determine the number of states of a direct form FIR filter.

FIRFilter = firls(30,[0 .1 .2 .5]*2,[1 1 0 0]);
DiscFilter = dfilt.dffir(FIRFilter);
NstateDF = nstates(DiscFilter)
NstateDF = 30

Introduced in R2011a