Integrate a signal over the last x seconds
7 views (last 30 days)
Show older comments
Francesco Galuppo
on 21 Dec 2020
Commented: Francesco Galuppo
on 22 Dec 2020
Hi,
I hope you can give me a good track to solve this problem on Simulink
I need to integrate a signal over the last 30 seconds, continously, so that:
where t0 is the actual time and x are the seconds backwards.
V is therefore changing every second.
Thanks a lot!
Francesco
0 Comments
Accepted Answer
Pat Gipper
on 21 Dec 2020
Using a combination of an integrator, transport delay and summer where you subtract the value of the integrator output from 30 seconds prior from the current output might satisfy what you need.
More Answers (0)
See Also
Categories
Find more on Model Verification 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!