采纳的回答

0 个投票

This plot is from Simulink Scope as shown here. You'd need to get the data imported into MATLAB woskpace, select the necessary region of the imported data and then perform summation with trapz().

3 个评论

Let's say your imported data has two columns of data (Col 1 is X and Col 2 is Y) representing the selected curve. So then, the area under the curve will be: trapz(X, Y)
thank you for giving me an idea. it helps me a lot

请先登录,再进行评论。

更多回答(1 个)

0 个投票

Use trapz() that gives you the numerical integration under the curve.

1 个评论

i dont really understand how to apply it. mind to share ?

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by