function w = bartlett(n)
%BARTLETT BARTLETT(N) returns the N-point Bartlett window.
w = 2*(0:(n-1)/2)/(n-1);
if rem(n,2)
	% It's an odd length sequence
	w = [w w((n-1)/2:-1:1)]';
else
	% It's even
	w = [w w(n/2:-1:1)]';
end

