Code covered by the BSD License  

Highlights from
Short Time Fourier Transform

3.5 | 2 ratings Rate this file 22 Downloads (last 30 days) File Size: 1.95 KB File ID: #38773 Version: 1.1
image thumbnail

Short Time Fourier Transform



24 Oct 2012 (Updated )

Script for computing the short time Fourier transform of 1D signals.

| Watch this File

File Information

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:


Stft, Short Time Fourier Transform inspired this file.

Required Products Signal Processing Toolbox
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
25 Apr 2013 Anton Semechko

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.

01 Dec 2012 nesma alkhulaidi

where is the code? please

Comment only
26 Nov 2012 Jonathan Lister

Jonathan Lister (view profile)

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.

Comment only
26 Nov 2012 Jonathan Lister

Jonathan Lister (view profile)

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.

24 Oct 2012 1.1

Correction of typo in comments

Contact us