MATLAB FFT for one 1*N Green function in MATLAB

AI Thread Summary
To perform FFT on a non-periodic 1×N Green function in MATLAB, zero-padding is suggested to convert it into a periodic function. A user defined a zero matrix and calculated the Green function in the energy domain, then used a for loop to achieve periodicity. The effectiveness of this method was questioned, prompting clarification on whether this approach is valid. The discussion highlights the importance of properly transforming the Green function for accurate FFT results. Overall, the conversation centers on techniques for handling non-periodic functions in FFT applications.
Zahra G
Messages
6
Reaction score
0
I have a 1×N Green function in energy domain. I want to use the FFT (fast Fourier transform) for this Green function in MATLAB. But this function is non-periodic. Could you help me about this? How can I change the energy interval to convert Green function as a periodic function?
 
Physics news on Phys.org
I am not sure I understand what you are trying to do. Could you use zero-padding?
 
I defined zero matrix with zeros command in the binging of the program and calculate the Green function in energy domain then I converted the Green function to periodic function using for loop. Is it true=?
 

Similar threads

Back
Top