Main Content

Generate octave spectrum

returns the octave spectrum of a signal `p`

= poctave(`x`

,`fs`

)`x`

sampled at a rate
`fs`

. The octave spectrum is the average power over
octave bands as defined by the ANSI S1.11 standard [2]. If
`x`

is a matrix, then the function estimates the octave
spectrum independently for each column and returns the result in the
corresponding column of `p`

.

specifies additional options for any of the previous syntaxes using name-value
arguments.`p`

= poctave(___,`Name,Value`

)

`poctave(___)`

with no output arguments plots
the octave spectrum or spectrogram in the current figure. If
`type`

is specified as `'spectrogram'`

,
then this function is supported only for single-channel input.

[1] Smith, Julius Orion, III.
"Example: Synthesis of 1/F Noise (Pink Noise)." In *Spectral Audio Signal
Processing*. https://ccrma.stanford.edu/~jos/sasp/.

[2] *Specification for
Octave-Band and Fractional-Octave-Band Analog and Digital Filters*. ANSI
Standard S1.11-2004. Melville, NY: Acoustical Society of America, 2004.

[3] Orfanidis, Sophocles J.
*Introduction to Signal Processing*. Englewood
Cliffs, NJ: Prentice Hall, 2010.