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?
Best Answer