Total energy in Time and Frequency Dimain

1 次查看(过去 30 天)
I truly appreciated if somebody can direct me how to measure total energy in a certain frequency band?
I have a signal and use this code to measure total enery and the result is reasonable.
E1_timedomain=sum(abs(x.^2))
but it measuers total energy of whole signal. I just want to measure it between [0-100] Hz. Appreciared!

采纳的回答

Star Strider
Star Strider 2020-12-12
If you have R2018a or later, and the Signal Processing Toolbox, use the bandpass function to selectively filter the frequencies-of-interest. Then do whatever calculations you want to do on the output. If you have an earlier version, it is easy to design filters in MATLAB. I will help you with that, if necessary.

更多回答(2 个)

Maria Amr
Maria Amr 2020-12-14
Star Strider I have applied a bandpass filter and get a reasonable result. Would you please direct me how may I retrive the filtered signal? Appreciated!
that is my code:
bandpass(amp1,[1 78],fs);

Maria Amr
Maria Amr 2020-12-14
Star Strider Appreciated!
  1 个评论
Star Strider
Star Strider 2020-12-14
As always, my pleaure!
(Also, in the future please post comments as Comments, not Answers.)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Signal Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by