Finding area under the curve of a Simulink signal
19 views (last 30 days)
Show older comments
Travis Dopp
on 26 Apr 2015
Commented: Tejeshwar Anbazhagan
on 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!
Accepted Answer
Sebastian Castro
on 27 Apr 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 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!