how to implement the integral formula in Matlab ?
2 ビュー (過去 30 日間)
古いコメントを表示
The question says all. The formula is to compute energy of the signal given by
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166260/image.png)
I have computed D(f)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166261/image.jpeg)
it is the fft spectrum of my time domain signal. How to implement this formula (ER) in Matlab?
As I know maths the value of an integral will be one value, but in the paper I referred according to the author the result is similar to spectrum but different values.
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 7 月 24 日
Fft of a finite length signal is a discrete process so the output cannot be integrated unless you do numeric integration with trapz or similar.
If you had a theoretically infinite signal then potentially you could do a continuous fourier transform and integrate that.
2 件のコメント
Walter Roberson
2017 年 7 月 24 日
You cannot do an integration of a discrete system.
You could use trapz() but make sure you get the x coordinates correct, and watch out for the fact that the results of fft include negative and positive frequency components. Watch out too for whether you are integrating only the real components or if you are doing a complex integration
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!