Total energy in Time and Frequency Dimain
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Maria Amr
le 12 Déc 2020
Commenté : Star Strider
le 14 Déc 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!
0 commentaires
Réponse acceptée
Star Strider
le 12 Déc 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 commentaires
Plus de réponses (2)
Maria Amr
le 14 Déc 2020
1 commentaire
Star Strider
le 14 Déc 2020
You need to use an output:
filtered_signal = bandpass(amp1,[1 78],fs);
Maria Amr
le 14 Déc 2020
1 commentaire
Star Strider
le 14 Déc 2020
As always, my pleaure!
(Also, in the future please post comments as Comments, not Answers.)
Voir également
Catégories
En savoir plus sur Signal Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!