function y = hamming(N)

y = zeros(1,2*N);
for k = 0:(2*N)
    y(k+1) = 0.54 - 0.46*cos(pi*k/N);
end

