??? 11/10/06 06:51 Read: times |
#127687 - Alfredos Code Doesnt seem to work properly. Responding to: ???'s previous message |
Dear Steve,
I tried to simulate and even emulate Alfredos FFT code available on your home page. The code first generate a data sample with following components, [pre] component amplitude Phase f1 256 0 (cosine) f2 128 0 (cosine) f3 85 aprox. delayed 90 degrees. [/pre] Then it does FFT on this data and store amplitudes of various orderes in amplitude array. I have tabulated the results of amplitude array after FFT. [pre] Amplitude[0] 393 Amplitude[1] 32119 Amplitude[2] 24989 Amplitude[3] 26980 Amplitude[4] 20988 Amplitude[5] 23216 Amplitude[6] 24899 Amplitude[7] 20041 Amplitude[8] 28644 Amplitude[9] 3725 Amplitude[10] 14440 Amplitude[11] 29572 Amplitude[12] 21141 Amplitude[13] 10579 Amplitude[14] 8424 Amplitude[15] 16881 Amplitude[16] 390 Amplitude[17] 27176 Amplitude[18] 7337 Amplitude[19] 26350 Amplitude[20] 29026 Amplitude[21] 5426 Amplitude[22] 6190 Amplitude[23] 27775 Amplitude[24] 28283 Amplitude[25] 18472 Amplitude[26] 10698 Amplitude[27] 19362 Amplitude[28] 31545 Amplitude[29] 32454 Amplitude[30] 22025 Amplitude[31] 27156 [/pre] The above results seem to be something not expected. Has anyone tried alfredo's code before. What could be wrong with this code. Thanks & Regards, Prahlad Purohit |