How to calculate the area under curve?

4 Ansichten (letzte 30 Tage)
AS
AS am 27 Mai 2021
Kommentiert: AS am 31 Mai 2021
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.

Akzeptierte Antwort

Torsten
Torsten am 27 Mai 2021
area_under_curve= trapz(x,y)
  3 Kommentare
Torsten
Torsten am 28 Mai 2021
Bearbeitet: Torsten am 28 Mai 2021
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 am 31 Mai 2021
Thank you so much.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by