Fast Finite Fourier Transform
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 (2025). Fast Finite Fourier Transform (https://www.mathworks.com/matlabcentral/fileexchange/54801-fast-finite-fourier-transform), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > Discrete Fourier and Cosine Transforms > Fast Fourier Transforms >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |