How to calculate the area under curve?

5 vues (au cours des 30 derniers jours)
AS
AS le 27 Mai 2021
Commenté : AS le 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.

Réponse acceptée

Torsten
Torsten le 27 Mai 2021
area_under_curve= trapz(x,y)
  3 commentaires
Torsten
Torsten le 28 Mai 2021
Modifié(e) : Torsten le 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 le 31 Mai 2021
Thank you so much.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by