IFFT complex numbers are wrong

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 个评论

can you attach your data? It worked fine for me for random testing

请先登录,再进行评论。

回答(2 个)

Star Strider
Star Strider 2020-12-7

0 个投票

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.

类别

在 帮助中心 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

产品

版本

R2019b

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by