필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by