You are on page 1of 24

x = ones(4,1); y = ones(6,1);

z = conv(x,y) % linear convolution


x1 = [x; zeros(2,1)]; % two zeros added to make the length 6
y1 = y; % same as y
z1 = cconv(x1,y1,6); % circular convolution of length 6

You might also like