Calculating area under a curve

Hi all!
I would like to know how to calculate the area under a curve which does not given an equation. I am really gratefyl if some scholar provide me an answer.
Kind regards,
A.Wickramasinghe

回答 (1 件)

Image Analyst
Image Analyst 2019 年 12 月 10 日

0 投票

Depends on what the signal values truly represent. I'd suggest either summing the signal with sum() or using trapz(). You can make a case for either being a good computation of the area under the curve depending on what the signal means physically.

1 件のコメント

Amila Wickramasinghe
Amila Wickramasinghe 2021 年 4 月 17 日
Thank you very much.

サインインしてコメントする。

カテゴリ

質問済み:

2019 年 12 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by