How to calculate the area under curve?

5 visualizzazioni (ultimi 30 giorni)
AS
AS il 27 Mag 2021
Commentato: AS il 31 Mag 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.

Risposta accettata

Torsten
Torsten il 27 Mag 2021
area_under_curve= trapz(x,y)
  3 Commenti
Torsten
Torsten il 28 Mag 2021
Modificato: Torsten il 28 Mag 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 il 31 Mag 2021
Thank you so much.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by