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, you can set the initial condition of the Unit Delay Block to 2. The resulting output is the same.