This function enables computation of the short time Fourier transform (STFT) of signals.
The function provides control over the windowing function and overlap ratio, and returns the STFT matrix "fftshifted".
This code was modified from a prior submission by Suraj Kamya, which is available at:
This is a pretty sloppy implementation of short-time FT. There are no default settings provided and the function throws an error if you specify a column vector instead of a row vector as a your input signal.
where is the code? please
Additionally, zero padding should never be done prior to applying a windowing function to your data. This will distort your window function and the results. I believe the first FFT is incorrect.
I don't see where you are scaling the FFTs in your funciton. Each FFT should be scaled by L for complex or L/2 for real valued input.
Correction of typo in comments