フィルターのクリア

How to calculate the area under curve?

6 ビュー (過去 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 Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by