# Delay by “$z$” in matlab simulink

I have a simple question

How could one implement the $z$ or $z^2$ in simulink? The $z^{-2}$ could be implemented by Variable Integer Delay block, but what about $z^2$?

• A z block is acausal. It effectively advances instead of delays the discrete signal by one sample. A z^2 block advances it by 2 samples. I think MATLAB doesn't let you do that. – CMDoolittle Jan 29 '16 at 2:14
• you are write and that what I want to do. but are you sure that Matlab don't allow that? – Serwan Bamerni Jan 29 '16 at 10:50
• Related: dsp.stackexchange.com/questions/19660/… - as @MattL points out: "Non-causal FIR filters can always be implemented by appropriate buffering of the input signal and delaying the output signal." – Matthias W. Mar 20 '16 at 12:56