function y = bartlett(N)

y = zeros(1,2*N+1);
for k = 0:N
    y(k+1) = k/N;
end

for k = (N+1):(2*N)
    y(k+1) = 2 - k/N;
end

