Main Content

Specify a Vector of Initial Conditions for a Discrete Filter Block

This example shows how to specify a vector of non-zero initial conditions for the Discrete Filter block.

The Scope shows that with the Initial states of the Discrete Filter block set to [1 2], the difference between the signal filtered by the Discrete Filter block and the signal from the filter's building blocks is zero. This demonstrates that you can enter the initial conditions of the Discrete Filter block as a vector of [1 2]. As an alternative, to achieve the same result, you can set the initial condition of Unit Delay to 1 and Unit Delay1 to 2.