Package: comm
Integrate discretetime signal with periodic resets
The IntegrateAndDumpFilter
object creates a
cumulative sum of the discretetime input signal, while resetting
the sum to zero according to a fixed schedule. When the simulation
begins, the object discards the number of samples specified in the
Offset property. After this initial period, the object sums the input
signal along columns and resets the sum to zero every Ninput
samples, set by the integration period property. The reset occurs
after the object produces output at that time step.
To integrate discretetime signals with periodic resets:
Define and set up your integrate and dump filter object. See Construction.
Call step
to integrate discretetime
signals according to the properties of comm.IntegrateAndDumpFilter
.
The behavior of step
is specific to each object in
the toolbox.
H = comm.IntegrateAndDumpFilter
creates
an integrate and dump filter System object™, H
.
this object integrates over a number of samples in an integration
period, and then resets at the end of that period.
H = comm.IntegrateAndDumpFilter(
creates
an integrate and dump filter object, Name
,Value
)H
, with each
specified property set to the specified value. You can specify additional
namevalue pair arguments in any order as (Name1
,Value1
,...,NameN
,ValueN
).
H = comm.IntegrateAndDumpFilter(PERIOD,
creates
an integrate and dump filter object, Name
,Value
)H
. This
object has the IntegrationPeriod
property set to PERIOD
and
the other specified properties set to the specified values.

Integration period Specify the integration period, in samples, as a positive, integer
scalar value greater than 

Number of offset samples Specify a nonnegative, integer vector or scalar specifying the
number of input samples that the object discards from each column
of input data at the beginning of data processing. Discarding begins
when you call the When you set the When you specify this property as a vector of length L, the ith element of the vector corresponds to the offset for the ith column of the input data matrix, which has L columns. When you specify this property as a scalar value, the object applies the same offset to each column of the input data matrix. The offset creates a transient effect, rather than a persistent delay. 

Decimate output Specify whether the When you set this property to When you set this property to 
clone  Create integrate and dump filter object with same property values 
getNumInputs  Number of expected inputs to step method 
getNumOutputs  Number of outputs from step method 
isLocked  Locked status for input attributes and nontunable properties 
release  Allow property value and input characteristics changes 
step  Integrate discretetime signal with periodic resets 
This object implements the algorithm, inputs, and outputs described on the Integrate and Dump block reference page. The object properties correspond to the block parameters, except:
The Output intermediate values parameter
corresponds to the DecimateOutput property. 