Estimate area under a complex curve
Show older comments
I would like to calculate the area under a complex curve whose function is not known.
The graph shows the power spectral density versus frequency.
As part of the design, I need to estimate the total energy which is the integral of the psd vs frequency curve.
I have used trapz (x,y) function to estimate the area under the curve but it seems it is not accurate.
Is there a better way to estimate the area in the matlab?
1 Comment
KSSV
on 22 Jul 2020
Why do you think trapz is not accurate?
Accepted Answer
More Answers (0)
Categories
Find more on Numerical Integration and Differentiation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!