function C = circconv(x,N)
x = x(:);
L = length(x);
if(N<L)
C = [];
return;
end
c = [x;zeros(N-L,1)];
r = [x(1),zeros(1,N-L),x(L:-1:2).'];
C = toeplitz(c,r);