obw
Occupied bandwidth
Syntax
Description
specifies the frequency interval over which to compute the occupied bandwidth.
This syntax can include any combination of input arguments from previous
syntaxes, as long as the second input argument is either bw
= obw(___,freqlims
,p
)fs
or f
. If the second input is passed as empty,
obw
assumes a normalized frequency. This syntax
also specifies p
as the percentage of the total signal
power contained in the occupied band.
obw(___)
with no output arguments
plots the PSD or power spectrum in the current figure window and annotates
the bandwidth.
Examples
Input Arguments
Output Arguments
Algorithms
To determine the occupied bandwidth, obw
computes a periodogram
power spectral density estimate using a rectangular window and integrates the estimate
using the midpoint rule. The occupied bandwidth is the difference in frequency between
the points where the integrated power crosses 0.5% and 99.5% of the total power in the
spectrum.
You can obtain the same value of the occupied bandwidth, bw
,
from a signal x
at a sample rate fs
in
these three ways.
Directly from the signal |
bw = obw(x,fs) |
From the periodogram of the signal |
[P,F] = periodogram(x,[],[],fs); bw = obw(P,F) |
From the power spectral estimate (Welch's PSD) of the signal |
[P,F] = pwelch(x,rectwin(length(x)),[],[],fs); bw = obw(P,F) |
Note
Because obw
uses an intermediary representation
to transform the input signal from the time domain to frequency domain, the
returned occupied bandwidth might vary, depending on the signal transformation
method, number of DFT points, and window size.
Extended Capabilities
Version History
Introduced in R2015aSee Also
bandpower
| periodogram
| powerbw
| plomb
| pwelch