Band power

returns
the average power in the frequency range, `p`

= bandpower(`x`

,`fs`

,`freqrange`

)`freqrange`

,
specified as a two-element vector. You must input the sampling frequency, `fs`

,
to return the power in a specified frequency range. `bandpower`

uses
a modified periodogram to determine the average power in `freqrange`

.

returns
the average power computed by integrating the power spectral density
(PSD) estimate, `p`

= bandpower(`pxx`

,`f`

,'psd')`pxx`

. The integral is approximated
by the rectangle method. The input, `f`

, is a vector
of frequencies corresponding to the PSD estimates in `pxx`

.
The `'psd'`

option indicates that the input is a
PSD estimate and not time series data.

returns
the average power contained in the frequency interval, `p`

= bandpower(`pxx`

,`f`

,`freqrange`

,'psd')`freqrange`

.
If the frequencies in `freqrange`

do not match
values in `f`

, the closest values are used. The
average power is computed by integrating the power spectral density
(PSD) estimate, `pxx`

. The integral is approximated
by the rectangle method. The `'psd'`

option indicates
the input is a PSD estimate and not time series data.

Was this topic helpful?