function y = rect( t , T )

% --------------------------------------------
%
% / = 1 if |t| =< T/2
% /
% y = rect( t, T) =
% \
% \ = 0 elsewhere
%
% --------------------------------------------

y = ~( abs(t) > T/2 ) ;