Skip to main content
1-Visitor
January 16, 2017
Solved

Fourier transformation of one index

  • January 16, 2017
  • 2 replies
  • 1941 views

Hello all,

I have a problem with the Fourier transform of one of the two dimensions by using the "for loop".

I will be appreciated if anyone could help me with the problem.

Please find the attachment. Thank you a lot!!

Best answer by AndyWesterman

c1.PNG

The first iteration of the m= loop will set the values for E0[0,n ,but you need all the m indexes filled to calculate the summation.

splitting the calculation to fill the E0 array first will fix this:

c1.PNG

Hope this helps

Andy

2 replies

12-Amethyst
January 16, 2017

c1.PNG

The first iteration of the m= loop will set the values for E0[0,n ,but you need all the m indexes filled to calculate the summation.

splitting the calculation to fill the E0 array first will fix this:

c1.PNG

Hope this helps

Andy

jlin-21-VisitorAuthor
1-Visitor
January 17, 2017

Hi Andy,

Thank you so much! It helps a lot!

Cheers,

JJ