MATLAB: How can adjust the delay

delay adjustmentsimulink

Hi. I am adjusting delay backward by using " variable time delay" block in simulink but its only forward the delay not backward. how can I adjust the delay in negative direction ? Please have a look into attached file and the waveform. I want to adjust the delay which is in 3rd plot.
Thanks

Best Answer

If you want to insert "negative" delay (-0.002) at one signal x(t) , into your simulink model you can do the following:
Add 0.002 delay to all other relevant signals and leave signal x(t) without any delay.
For example, at the following block diagram, signal sig2 has a "negative delay" of 1 sample regarding signals sig1 and sig3 .
example.jpg