FUNCTION REFERENCE

istft

Reconstruct a signal by weighted overlap-add of short-time transforms.

Reconstruct a signal by weighted overlap-add of short-time transforms.

Syntax

[x,t] = istft(s)

Syntax

[x,t] = istft(s,fs,'Window',w,'OverlapLength',n,'FFTLength',m)

Uses inverse FFT, multiplies by the synthesis window, and divides by accumulated squared windows. Supply the same window, overlap, FFT length, sample rate and 'FrequencyRange' used by stft. Defaults: symmetric Hann of min(128,inferred FFT length), 75 percent overlap rounded down, FFT length inferred from frequency bins, centered range. For one-sided input, FFT length is inferred as 2*(number of bins-1); otherwise it is the number of bins. Explicit FFTLength also sets the default window length; specify it for odd one-sided transforms. Removes floor(window length/2) boundary samples at each end. A whole-hop input round trips to rounding accuracy under COLA; NOLA windows also reconstruct when all retained weights are nonzero. 'OutputLength' trims padded tail samples when the original length was not a whole hop. Output time is samples without fs, seconds with fs. Complex signals are retained; exactly conjugate-symmetric spectra produce real reconstructions.

Example

s=stft(sin(1:128)); [x,t]=istft(s);

Example

s=stft(1:63,'Window',hamming(16),'OverlapLength',8); [x,t]=istft(s,'Window',hamming(16),'OverlapLength',8,'OutputLength',63);

Differences from MATLAB: raw-FFT input, zero-padding convention paired with this stft, vectors only, and no timetable or alternate synthesis methods. Uncovered output samples error. FFT length is at most 1048576; work and memory limits apply.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.