How to calculate the area under curve?

4 次查看(过去 30 天)
I have attached a curve in which x axis is time and y axis is amplitude. How to calculate the area under this curve.Please suggest me.

采纳的回答

Torsten
Torsten 2021-5-27
area_under_curve= trapz(x,y)
  3 个评论
Torsten
Torsten 2021-5-28
编辑:Torsten 2021-5-28
If the spacings between the x-values is 1, you can use trapz(y), else you must use trapz(x,y).
The fact that the two results are different indicates that the spacing is different from 1 in your case.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by