Estimate area under a complex curve
Mostrar comentarios más antiguos
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 comentario
KSSV
el 22 de Jul. de 2020
Why do you think trapz is not accurate?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Numerical Integration and Differentiation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!