Total energy in Time and Frequency Dimain

1 Ansicht (letzte 30 Tage)
Maria Amr
Maria Amr am 12 Dez. 2020
Kommentiert: Star Strider am 14 Dez. 2020
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!

Akzeptierte Antwort

Star Strider
Star Strider am 12 Dez. 2020
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 Kommentare
Maria Amr
Maria Amr am 12 Dez. 2020
Star Strider Thank you so much.
As usual, the best and the fast way.BIG like!
Star Strider
Star Strider am 12 Dez. 2020
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Maria Amr
Maria Amr am 14 Dez. 2020
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 Kommentar
Star Strider
Star Strider am 14 Dez. 2020
You need to use an output:
filtered_signal = bandpass(amp1,[1 78],fs);

Melden Sie sich an, um zu kommentieren.


Maria Amr
Maria Amr am 14 Dez. 2020
Star Strider Appreciated!
  1 Kommentar
Star Strider
Star Strider am 14 Dez. 2020
As always, my pleaure!
(Also, in the future please post comments as Comments, not Answers.)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Signal Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by