Finding area under the curve of a Simulink signal

21 views (last 30 days)
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
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

More Answers (0)

Categories

Find more on Simulation 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!