Time domain filters with transfer functions

Filters can also be implemented in the time domain using the transferFunction block. For example, consider again the difference equation:

You can represent it in the form of a transfer function as:

You can then implement the transfer function in block diagram form using the transferFunction block. In the Transfer Function Properties dialog box, activate Discrete and set the value of dT to be greater than or equal to the simulation time step.