[S, F, T] = stft(X)
[S, F, T] = stft(X, Fs)
[S, F, T] = stft(X, Fs, 'Window', window, 'OverlapLength', overlap, 'FFTLength', nfft)
[S, F, T] = stft(..., 'FrequencyRange', range)
| Parameter | Description |
|---|---|
| X | input vector. |
| Fs | sample rate. The default value is 1. |
| window | analysis window. The default value is hamming(128). |
| overlap | overlap length. It must be less than the window length. |
| nfft | FFT length. It must be greater than or equal to the window length. |
| range | frequency range: 'centered', 'twosided', or 'onesided'. |
| Parameter | Description |
|---|---|
| S | short-time transform matrix. |
| F | frequency vector. |
| T | time vector. |
stft splits the input vector into overlapping windowed frames and computes one FFT per frame. The output can be centered, two-sided, or one-sided.
[s, f, t] = stft(sin((0:31)' * 0.2), 10, 'Window', hamming(8), 'OverlapLength', 4, 'FFTLength', 16, 'FrequencyRange', 'onesided');
| Version | Description |
|---|---|
| 2.0.0 | initial version |