IFFT complex numbers are wrong
Mostra commenti meno recenti
So i am making 2 signals x and h
i am finding y=their convolution the size of the matrix is 401
i am finding the fft of x and h and i make the Y=X.*H
when i am using ifft(Y) the number 1 and 401 whitch are complex are wrong while the rest 399 are right
do you know what's the fault?
1 Commento
Walter Roberson
il 7 Dic 2020
can you attach your data? It worked fine for me for random testing
Risposte (2)
Star Strider
il 7 Dic 2020
0 voti
Those numbers (indices 1 and 401) are likely the D-C (or constant) values of the Fourier transform. The entire vector will be complex, however the imaginary values for 1 and 401 should be vanishingly small (close to the eps value), especially when compared to the imaginary parts of the other values.
Walter Roberson
il 7 Dic 2020
0 voti
fft convolution does circular convolution unless you pad appropriately
Categorie
Scopri di più su Fourier Analysis and Filtering in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!