How to calculate the area under curve?

조회 수: 5 (최근 30일)
AS
AS 2021년 5월 27일
댓글: AS 2021년 5월 31일
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.
AS
AS 2021년 5월 31일
Thank you so much.

댓글을 달려면 로그인하십시오.

추가 답변 (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