spectrogram

Signal Processing

Short-time Fourier Transform spectrogram. Computes time-frequency representation of a signal by applying FFT to overlapping windowed segments. Returns { S, f, t } — power matrix, frequency vector, time vector.

Syntax

spectrogram(x)
spectrogram(x, window)
spectrogram(x, window, noverlap, nfft)

Examples

x = sin(linspace(0, 100*pi, 1000)); spectrogram(x)
▶ Run
spectrogram(randn(512), 64, 32, 128)
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.