time domain convolution not reversing frequency domain multiplication? ifft scaling isssues?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a input signal in time domain and a tranfer function in frequency domain. In the transmitter i take the fft of input signal multiply them and convert back to time domain. In receiver i take the conjugate of the transfer function and convoluted with the time domain signal. I am expecting my inital time domain signal at the output. I wonder if it is the problem of ifft scaling
%%%start code%%%%%%
xt=[0 1 0 0 0 1 0 1];
hf=[1.0000 -0.4879 + 0.8729i -0.4509 + 0.8926i 0.9921 - 0.1254i -0.2956 + 0.9553i 0.9921 - 0.1254i -0.4509 + 0.8926i -0.4879 + 0.8729i];
inverse_hf=conj(hf);
%transmission
temp=fft(xt).*hf;
input=ifft(temp);
%receiver
transferfunc=ifft(inverse_hf);
output=conv(input,transferfunc);
%%%%%end code%%%%
------
results from the above code
input=[0.2242 - 0.1818i 0.1514 + 0.5814i 0.7475 - 0.5347i 0.2508 - 0.0518i 0.7475 - 0.5347i 0.1514 + 0.5814i 0.2242 - 0.1818i 0.5029 + 0.3220i];
output=[-0.0735 - 0.1371i 0.2904 - 0.0159i -0.1254 - 0.5298i 0.0118 - 0.0056i -0.1997 - 0.2054i 0.9651 - 0.1221i 0.0318 + 0.0608i 1.0000 + 0.0000i 0.0735 + 0.1371i 0.7096 + 0.0159i 0.1254 + 0.5298i -0.0119 + 0.0056i 0.1997 + 0.2054i 0.0349 + 0.1221i -0.0318 - 0.0608i];
Thanks in advance
Janu
回答 (1 件)
Honglei Chen
2012 年 12 月 11 日
編集済み: Honglei Chen
2012 年 12 月 11 日
Looks like you are comparing the result of conv with the frequency domain multiplication? If that's the case, to achieve the same result as linear convolution carried out by conv, you need to pad the signal to correct length before you translate to frequency domain.
Also, taking conjugate of the hf does not give you an inverse filter if that's what you look for.
2 件のコメント
Honglei Chen
2012 年 12 月 14 日
you could just pad all sequence to the appropriate length, then multiply all three frequency representation together and then do IFFT. I just want to mention again that conj(hf) in general is not an inverse filter of hf.
参考
カテゴリ
Help Center および File Exchange で Transforms についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!