area under a curve ?

1 次查看(过去 30 天)
  1 个评论
amalina ibrahim
amalina ibrahim 2021-6-9
can anyone help me the exact coding for area under a curve ?

请先登录,再进行评论。

采纳的回答

Sulaymon Eshkabilov
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 个评论
amalina ibrahim
amalina ibrahim 2021-6-16
thank you for giving me an idea. it helps me a lot

请先登录,再进行评论。

更多回答(1 个)

Sulaymon Eshkabilov
Use trapz() that gives you the numerical integration under the curve.
  1 个评论
amalina ibrahim
amalina ibrahim 2021-6-9
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