Closer approximations to the ideal digital filters than our simple examples can be had
at the expense of more complexity (i.e. more zeros and or poles in H(z)). The diagram below
illustrates a better low pass filter than our previous example.
The deviations from ideal properties include :
Various filter designs have been invented and the most useful ones are implemented in Matlab. In the various designs there are trade-offs between non-ideal characteristics.