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.

Spectral flux for audio signals and auditory spectrograms

`flux = spectralFlux(x,f)`

`flux = spectralFlux(x,f,Name,Value)`

The spectral flux is calculated as described in [1]:

$$\text{flux(}t\text{)}={\left({\displaystyle \sum _{k={b}_{1}}^{{b}_{2}}{\left|{s}_{k}(t)-{s}_{k}(t-1)\right|}^{P}}\right)}^{\raisebox{1ex}{$1$}\!\left/ \!\raisebox{-1ex}{$P$}\right.}$$

where

*s*is the spectral value at bin_{k}*k*.*b*_{1}and*b*_{2}are the band edges, in bins, over which to calculate the spectral flux.*P*is the norm type. You can specify the norm type using`NormType`

.

[1] Scheirer, E., and M. Slaney.
"Construction and Evaluation of a Robust Multifeature Speech/Music Discriminator." *IEEE International Conference on Acoustics, Speech, and Signal
Processing*. Volume 2, 1997, pp. 1221–1224.