bandpower
Estimate signal power in a frequency band.
📝Syntax
P = bandpower(X)
P = bandpower(X, Fs, freqRange)
P = bandpower(Pxx, F, 'psd')
P = bandpower(Pxx, F, freqRange, 'psd')
📥Input Arguments
Parameter Description
X input time-domain signal.
Fs sample rate.
freqRange two-element frequency range.
Pxx, F power spectral density estimate and matching frequency vector.
📤Output Arguments
Parameter Description
P estimated average power.
📄Description

bandpower computes average time-domain power, or integrates a PSD estimate with a rectangle approximation. For time-domain band measurements, a Hamming-window periodogram with the input length is used.

💡Examples
p = bandpower(sin((0:127)' * 0.1), 10, [0 5]);
🔗See Also
periodogrammeanfreqmedfreq
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub