Store CIC filter states
filtstates.cic objects hold the states information
for CIC filters. Once you create a CIC filter, the states for the
filter are stored in
and you can access them and change them as you would any property
of the filter. This arrangement parallels that of the
that IIR direct-form I filters use (refer to
States property in the CIC filter
comprises two properties —
filtstates.cic objects. Within the
are the numerator-related and comb-related filter states. The states
are column vectors, where each column represents the states for one
section of the filter. For example, a CIC filter with four decimator
sections and four interpolator sections has
that contain four columns of states each.
Integrator and Comb States of a CIC Filter
Construct an object with integrator and comb states as vectors of zeros.
h = filtstates.cic(zeros(4,1),zeros(4,1));
h has zero states now. You can use int to see the states as 32-bit integers.
intStates = int(h.Integrator)
intStates = 4x1 int32 column vector 0 0 0 0
combStates = int(h.Comb)
combStates = 4x1 int32 column vector 0 0 0 0
Introduced in R2011a