MATLAB: Does the output of a discrete transfer function not reset to the initial condition specified by dialog or an input signal

dtfsimulink

I would like to reset the output of a discrete transfer function to an initial condition specified either by a dialog or input signal. The reset of the transfer function is triggered by another signal.
In my model the output does not reset to the exact value specified. Why is this?

Best Answer

Per the documentation, when the specified trigger event occurs for an external reset signal, the block resets the states to their initial conditions.
An output of a transfer function may not be equal to its states. Hence when the states of the blocks are reset, the output may not be equal to it.