Compute the short-time 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"
win_type = 1
"hamming"
win_type = 2
"rectangle"
win_type = 3
The window names can be passed as strings or by the win_type number.
The following defaults are used for unspecified arguments: win_size = 80, inc = 24, num_coef = 64, and win_type = 1.
y = stft (x, …)
returns the absolute values of the
Fourier coefficients according to the num_coef positive frequencies.
[y, c] = stft (
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 x
, …)synthesis
function.
See also: synthesis.
Package: octave