Jan 25, 2006 #1 S scdoro Member level 5 Joined Jan 12, 2005 Messages 87 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,040 Hi all, Can anyone help me comment on the below code and explain how the function works.I am not sure how this function works and why is there a mid value in the calculation? Thanks a lot! regards
Hi all, Can anyone help me comment on the below code and explain how the function works.I am not sure how this function works and why is there a mid value in the calculation? Thanks a lot! regards
Jan 25, 2006 #2 V vadkudr Advanced Member level 4 Joined Jul 12, 2005 Messages 108 Helped 15 Reputation 30 Reaction score 4 Trophy points 1,298 Activity points 2,236 The main string is H=fftshift(fft(x,n)); it calculates Fourier transform of length 'n'. All other strings above calculate only respective frequency points from -pi to pi. What namely for you is not clear?
The main string is H=fftshift(fft(x,n)); it calculates Fourier transform of length 'n'. All other strings above calculate only respective frequency points from -pi to pi. What namely for you is not clear?