P = bandpower(X)
P = bandpower(X, Fs, freqRange)
P = bandpower(Pxx, F, 'psd')
P = bandpower(Pxx, F, freqRange, 'psd')
| 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. |
| Parameter | Description |
|---|---|
| P | estimated average power. |
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.
p = bandpower(sin((0:127)' * 0.1), 10, [0 5]);
| Version | Description |
|---|---|
| 2.0.0 | initial version |