Total energy in Time and Frequency Dimain

조회 수: 1 (최근 30일)
Maria Amr
Maria Amr 2020년 12월 12일
댓글: Star Strider 2020년 12월 14일
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월 12일
Star Strider Thank you so much.
As usual, the best and the fast way.BIG like!
Star Strider
Star Strider 2020년 12월 12일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (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);
  댓글 수: 1
Star Strider
Star Strider 2020년 12월 14일
You need to use an output:
filtered_signal = 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