Constructing an FFT-like result array.
Mostrar comentarios más antiguos
Background: From a known complex frequency response, one can "build" an array that should look like the output of fft() by appending the conjugate array in reverse to the end of the original. Then, running the resulting array through ifft() gives the time domain impulse response. Question: Are there requirements or constraints on the endpoints, midpoint/midgap, number of array elements in either half, etc? For example, I have seen a 5000 element array constructed as follows: element 1 = 0+j0, elements 2-2501 are the original complex frequency response, elements 2502-5000 are the conjugates of elements 2500-2 (so 2500=2502*, 2499=2503* … 2=5000*), with element 2501 changed to abs() of itself. So elements 1 and 2501 seem to be "special". Now, I ran ifft() on that 5000 element array constructed as described, and again with element 2501 left as the original complex number. There was no visible difference in the calculated impulse response. So these observations have made me wonder what is the proper way to handle endpoints and midpoint (or midgap) of the array, in general.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Array and Matrix Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!