how to calculate the integral of the area difference between these two curves?

3 ビュー (過去 30 日間)
Priscilla Schmitz
Priscilla Schmitz 2019 年 6 月 21 日
コメント済み: Star Strider 2019 年 6 月 21 日
Hi,
I need to calculate the integral of the area in green, how do i do that on MATLAB?
I use trapz to integrate.
Thank you

回答 (1 件)

infinity
infinity 2019 年 6 月 21 日
Hello,
Here is my suggestion that can be done by trapz.
First, you use trapz to calcultate integral of "blue" line with dB from 60 to 100. We can name its as S1.
Then, you use trapz to calcutate integral of "blue" line with dB from 60 to 75. We can name it as S2.
Next, you use trapz to compute integral of "red" line with dB from 75 to 100. We can name it as S3.
Finally, you compute S = S1 - S2 - S3.
Hope this would help you.
  4 件のコメント
Priscilla Schmitz
Priscilla Schmitz 2019 年 6 月 21 日
good, how do i find the intersection points between two curves?

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

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by