MATLAB Matlab code for 2D inverse Fourier transforms

AI Thread Summary
The discussion centers on the utility of custom routines for computing the 2D inverse Fourier transform, with an offer to share the code if there is interest. Concerns are raised about the built-in functions fft2 and ifft2 in MATLAB, questioning their effectiveness and accuracy in performing Fourier transforms. The critique highlights that these functions do not provide the expected output of a single variable Fourier transform, which should yield a function evaluated at a specific point k. The conversation emphasizes skepticism towards MATLAB's built-in functionalities, suggesting that they may not always meet user needs, as illustrated by the preference for manually calculating the Hilbert transform instead of relying on MATLAB's version.
hunt_mat
Homework Helper
Messages
1,816
Reaction score
33
I have written some routines that compute the 2D inverse Fourier transform, if anyone thinks that this may be useful at all then please let me know and I will gladly post the code.
 
Physics news on Phys.org
What's wrong with the built in functions fft2 and ifft2?
 
They're not Fourier transforms? Even with the single variable fft doesn't do a Fourier transforms, a single variable Fourier transform takes a function and gives a function evaluated at a single point k, but the function fft doesn't do this and from the description of the actual function you can't really figure out how to get the actual function evaluated at a point k (which is a single number NOT a vector.

Just because Matlab has certain inbuilt functionality doesn't mean to say that it's good. It also has a Hilbert transform, I always calculate that myself as well.
 

Similar threads

Replies
4
Views
4K
Replies
10
Views
3K
Replies
0
Views
2K
Replies
32
Views
4K
Replies
2
Views
2K
Replies
7
Views
2K
Back
Top