# question regarding convolution theorem

As per the convolution theorem, a convolution in time domain is equivalent to a multiplication in the frequency domain.

Then say (MATLAB code),

x = x(1:256)
y = y(1:256)
conv(x,y) should be equal to ifft(fft(x).*fft(y))


But it is not. Why is it so? What is that I am missing?

• Do you about linear convolution versus circular or cyclic convolution? – Dilip Sarwate Oct 1 '15 at 11:17

x = zeros(1,256); x(120:170)=1;