Contents Up Previous Next

STFT

Purpose
Description
Tips
Macro Synopsis
Modules
Related Functions


Purpose

Short-time Fourier Transform

Description

"STFT" computes a time-frequency distribution of an input signal x within a given frequency interval as a sequence of short-time spectra of windowed signal segments with constant length.

This function returns a 2D signal of the adaptive time-frequency spectrum. It is displayed as time (x-axis) versus frequency (y-axis) with the power or amplitude spectral values given on the z-axis.

Parameters of "STFT" are


Tips

There is always an inherent tradeoff between time resolution and frequency resolution with being the sampling period (scale) of the signal. It can be expressed by the uncertainty relationship . Thus, the appropriate choice of N strongly depends on the scale (i.e. the sampling period) and the characteristics of the signal to be analysed.

Macro Synopsis

y = STFT(x,f0,f1,fres,tres,N,spectype,normtype);
signal x, y;
float f0, f1;
int fres, tres, N;
option spectype, normtype;

Note that y is a 2D signal.


Modules

Spectral

Related Functions

Momentary ARMA spectrum, Multiscale TFD.