Finding area under the curve of a Simulink signal
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Travis Dopp
le 26 Avr 2015
Commenté : Tejeshwar Anbazhagan
le 18 Sep 2015
I am trying to find the best (easy) way to find the area under a curve for a time series in Simulink. I do not have a function for the data as it is results extracted from a Revolute Joint. I want to determine the area under the curve produced if the simulation ran for 1 hour. What is the best way to do this? I tried converting to a physical signal and using the PS integrator but ran into the error below. Any help is greatly appreciated! Thank you!
1 commentaire
Réponse acceptée
Sebastian Castro
le 27 Avr 2015
The error you get is because you need a Solver Configuration block on that Simscape network with the PS Integrator and the 2 converter blocks. If you have multiple Simscape networks in your model that are completely independent, each requires a separate Solver Configuration block.
That being said, I would just use a regular Integrator block (not a PS Integrator blocks) to do that calculation. This block is in the Simulink > Continuous library.
- Sebastian
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!