Spectrogram (Short-time FT log magnitude)

Computes the Short-time Fourier transform and displays as grayscale image or 3-D surface
30,6K download
Aggiornato 4 apr 2002

Nessuna licenza

This program is a modification and extension to Paul Kienzle's spectrogram program for Octave. It is for Matlab 6r12.1. The short-time fourier transform of a signal is computed by FFTs of overlapping windowed signal segments. You can then exit with the complete STFT, as a matrix, or you can go on to plot first a grayscale pseudocolor spectrogram with interpolated shading, and then a color 3-D surface spectrogram viewed from an optimum angle.
I made this because the specgram function in the Matlab toolbox is a joke, it doesn't even use a Fast Fourier Transform, electing to compute the DFT directly in its algorithm. Second, neither that algorithm nor Paul's original program used the pseudo plot, which allows interpolated shading of the colors, which makes the spectrogram look acceptable. The other way (i.e.\ Matlab SP toolbox, Paul's program) of displaying a 2-D plot with a third dimension as color is through an indexed image, but this doesn't allow interpolated shading, and so the spectrograms are totally useless for speech analysis.

Cita come

Sean Fulop (2025). Spectrogram (Short-time FT log magnitude) (https://it.mathworks.com/matlabcentral/fileexchange/1553-spectrogram-short-time-ft-log-magnitude), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R12.1
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0