function C = linconv(x,N)
x = x(:);
L = length(x);
c = [x;zeros(N-L,1)];
r = [x(1),zeros(1,N-L)];
C = toeplitz(c,r);

