hi Muhammad,
Your D1 does not contain any delay and your initial set contant values for D1, D2, D3 (.6, .2, .2) differ from your set values D1= 0.5, D2=D3= 0.25. (D1+D2+D3=1).
Why don't you use just a Delay block?
Good luck.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!