Function Reference
— Function File: [y, c] = stft (x, win_size, inc, num_coef, w_type)

Compute the short-term Fourier transform of the vector x with num_coef coefficients by applying a window of win_size data points and an increment of inc points.

Before computing the Fourier transform, one of the following windows is applied:

hanning
w_type = 1
hamming
w_type = 2
rectangle
w_type = 3

The window names can be passed as strings or by the w_type number.

If not all arguments are specified, the following defaults are used: win_size = 80, inc = 24, num_coef = 64, and w_type = 1.

y = stft (x, ...) returns the absolute values of the Fourier coefficients according to the num_coef positive frequencies.

[y, c] = stft (x, ...) returns the entire STFT-matrix y and a 3-element vector c containing the window size, increment, and window type, which is needed by the synthesis function.