![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/467520/image.jpeg)
Integrate a signal over the last x seconds
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Francesco Galuppo
le 21 Déc 2020
Commenté : Francesco Galuppo
le 22 Déc 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: ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/467475/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/467475/image.png)
where t0 is the actual time and x are the seconds backwards.
V is therefore changing every second.
Thanks a lot!
Francesco
0 commentaires
Réponse acceptée
Pat Gipper
le 21 Déc 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/467520/image.jpeg)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Model Verification dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!