Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Band power

`p = bandpower(x)`

`p = bandpower(x,fs,freqrange)`

`p = bandpower(pxx,f,'psd')`

`p = bandpower(pxx,f,freqrange,'psd')`

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.