How make an equivalent function of unit delay in matlab
Show older comments
Hello,
I want to realise a average filter in simulink
The solution below work good, but the delay (5) is not a constant. it can be 10 or 20.

So i tried to make a matlab function in order to have this capability, but i cant find a proper delay function.
Have you got any ideas to perform this calculation?
Thanks a lot
Answers (1)
Birdman
on 16 Apr 2018
0 votes
Delay block comes with its Input Port choice within the mask in its Source. Check the attached figures.
3 Comments
Birdman
on 16 Apr 2018
Baptiste's answer moved here:
Hello,
Thx but i found this feature and it do not fit.
I need to know the stats status at z^-5, z^-4 and so on and then add all the values in order to calcul the average.
With the block you mean, i only know the z^-5 value, thats all.
Any ideas?
Birdman
on 16 Apr 2018
Well, I did not understand clearly what you tried to do. I thought you want to continuously change the delay order throughout the simulation?
Baptiste Giroud
on 16 Apr 2018
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!