How to fill and calculate the area between two FFT curves?

1 view (last 30 days)
I want to calculate the area between the two FFT curves. I tried using trapz to calculate the area, but somehow it doesn't work. The matlab file of the curves is attached below. Thanks in advance:)

Answers (1)

darova
darova on 31 Jul 2019
You have to find where those curve intersect
3Untitled.png
Use polyxpoly() for example

Community Treasure Hunt

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

Start Hunting!