J_expoler2
Member level 4
multiplication frequency domain
hi
i studying in DSP but i have problem ??
- convolution in time domain and multiplication in frequency domain
Ex 1
a = [4 1 3 2];
b = [0.5 2 1 3];
ans = conv(a,b);
ans =2.0000 8.5000 7.5000 20.0000 10.0000 11.0000 6.0000
and Ex2
a = [4 1 3 2];
b = [0.5 2 1 3];
A=fft(a);
B=fft(b);
ans = ifft(A.*B);
ans= 12.0000 19.5000 13.5000 20.0000
why Ex1 not equal Ex2 ??
Best regards.
hi
i studying in DSP but i have problem ??
- convolution in time domain and multiplication in frequency domain
Ex 1
a = [4 1 3 2];
b = [0.5 2 1 3];
ans = conv(a,b);
ans =2.0000 8.5000 7.5000 20.0000 10.0000 11.0000 6.0000
and Ex2
a = [4 1 3 2];
b = [0.5 2 1 3];
A=fft(a);
B=fft(b);
ans = ifft(A.*B);
ans= 12.0000 19.5000 13.5000 20.0000
why Ex1 not equal Ex2 ??
Best regards.