Number of filter states
n = nstates(hd)
n = nstates(hd) returns
the number of states
n in the discrete-time filter
The number of states depends on the filter structure and the coefficients.
Check the number of states for a direct form FIR filter.
h = firls(30,[0 .1 .2 .5]*2,[1 1 0 0]); hd = dfilt.dffir(h); NstateDF = nstates(hd);