Fast Finite Fourier Transform

Using MATLAB's in-built fft function, this function creates an FFT
119 Downloads
Updated 8 Jan 2016

View License

Generates a single sided FFT for a given timeseries input using MATLAB's fft function
Inputs:
TimeResolution (in seconds)
TotalTime (in seconds)
TimeSeries101 - They ordinate/magnitude values of the time series in a 1D integer array (if this is not sent to the
function, a sum of sinusoids of amplitude 1, 2, 3 with freq 50, 150, 250 Hz and
phases of 0, 0, 0° will be used arbitrarily)
Outputs:
One structure fftval
fftval.fig: Contains the figure handle for the generated fourier transform
fftval.freq: Contains the frequency vector (x axis) for the generated fourier transform
IMPORTANT:
The resolution of the frequency axis is going to be (Fs/N)
i.e. (1/TimeResolution)/(TotalTime/TimeResolution)
i.e. (1/TotalTime)
If the start time is non-zero, resolution of the frequency axis is
(1/(TotalTime-StartTime))
The range of the frequency axis is going to be
0 - (1/(TimeResolution*2)) Hz
fftval.amp: Contains the amplitude vector (y axis) for the generated fourier transform

Cite As

Devraj Dutt (2024). Fast Finite Fourier Transform (https://www.mathworks.com/matlabcentral/fileexchange/54801-fast-finite-fourier-transform), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0