Manual calculation of fourier and inverse fourier transform

You can use this code to manually find fourier transform and inverse fourier transform (without using fft and ifft by matlab) for both 1D/2D
212 Downloads
Updated 5 Nov 2021

View License

For the Fourier Transformation:
x is the arbitrary vector that you can set.
x_fourier is the fourier transform by matlab function fft.
A is the fourier transform by manual calculation/DFT algorithm. A will match with x_fourier.
Similarly, y is the arbitrary matrix that you can set.
y_fourier is the fourier transform by matlab function fft2.
B is the fourier transform by manual calculation/DFT algorithm. B will match with y_fourier.
For the Inverse Fourier Transformation:
Inverse_A and inverse_B are the inverse fourier transformation, calculated manually for 1D and 2D, respectively. They should match with x and y, respectively.

Cite As

Mustafa Rifat (2024). Manual calculation of fourier and inverse fourier transform (https://www.mathworks.com/matlabcentral/fileexchange/101574-manual-calculation-of-fourier-and-inverse-fourier-transform), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
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.1

Added an image and updated the description

1.0.0