Effacer les filtres
Effacer les filtres

Bandpower function produces same results for different bands

1 vue (au cours des 30 derniers jours)
chels19
chels19 le 12 Juil 2016
Commenté : chels19 le 13 Juil 2016
I'm using the bandpower function with different frequency bands. However, the results from each band are the same. The code I'm using is:
avpow = bandpower(x, fs, [0.0 0.4])
HF = bandpower(x, fs, [0.15 0.4]) %high frequency
LF = bandpower(x, fs, [0.04 0.15]) %low frequency
VLF = bandpower(x, fs, [0.0033 0.04]) %very low frequency
Any help is greatly appreciated.

Réponses (1)

Greg Dionne
Greg Dionne le 12 Juil 2016
You might not be giving it enough data to resolve the lower frequencies. You generally will have a resolution on the order of fres = fs / length(x). Since your lowest frequency band ends at 0.04 Hz, make sure fres << 0.04 Hz.
  1 commentaire
chels19
chels19 le 13 Juil 2016
Thanks. The frequency it was originally recorded at was 512. Should I be using 512 in my code as fs?
fres = 512 / length(x) returns 2.473
Or should I used the maximum frequency I'm looking for (0.4)?
fres = 0.4 / length(x) returns 0.00193

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by