Checked and finished port of wideband_fft.m