Spectrogram using short-time Fourier transform

`[s,w,t] = spectrogram(___)`

- example
`[s,f,t] = spectrogram(___,fs)`

`[s,w,t] = spectrogram(x,window,noverlap,w)`

`[s,f,t] = spectrogram(x,window,noverlap,f,fs)`

`[___,ps] = spectrogram(___)`

`[___] = spectrogram(___,freqrange)`

`[___] = spectrogram(___,spectrumtype)`

- example
`[___] = spectrogram(___,'MinThreshold',thresh)`

`[___,`

also
returns a matrix, `ps`

] = spectrogram(___)`ps`

, containing an estimate
of the power spectral density (PSD) or the power spectrum of each
section.

`[___] = spectrogram(___,'reassigned')`

reassigns
each PSD or power spectrum estimate to the location of its center
of energy. If your signal contains well-localized temporal or spectral
components, then this option generates a sharper spectrogram.

`[___] = spectrogram(___,`

returns
the PSD or power spectrum estimate over the frequency range specified
by `freqrange`

)`freqrange`

. Valid options for `freqrange`

are `'onesided'`

, `'twosided'`

,
and `'centered'`

.

`[___] = spectrogram(___,`

returns
PSD estimates if `spectrumtype`

)`spectrumtype`

is specified as `'psd'`

and
returns power spectrum estimates if `spectrumtype`

is
specified as `'power'`

.

[1] Oppenheim, Alan V., Ronald W. Schafer, and John R. Buck. *Discrete-Time
Signal Processing*. 2nd Ed. Upper Saddle River, NJ: Prentice
Hall, 1999.

[2] Rabiner, Lawrence R., and Ronald W. Schafer. *Digital
Processing of Speech Signals*. Englewood Cliffs, NJ: Prentice-Hall,
1978.

[3] Chassande-Motin, Éric, François Auger, and
Patrick Flandrin. "Reassignment." In *Time-Frequency
Analysis: Concepts and Methods*. Edited by Franz Hlawatsch
and François Auger. London: ISTE/John Wiley and Sons, 2008.

[4] Fulop, Sean A., and Kelly Fitz. "Algorithms for
computing the time-corrected instantaneous frequency (reassigned)
spectrogram, with applications." *Journal of the
Acoustical Society of America*. Vol. 119,
January 2006, pp. 360–371.

Was this topic helpful?