cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Fourier transformation of one index

jlin-2
1-Newbie

Fourier transformation of one index

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!!

1 ACCEPTED SOLUTION

Accepted Solutions
AndyWesterman
4-Participant
(To:jlin-2)

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

View solution in original post

2 REPLIES 2
AndyWesterman
4-Participant
(To:jlin-2)

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

Hi Andy,

Thank you so much! It helps a lot!

Cheers,

JJ

Top Tags