%
% Optical Imaging and Spectroscopy
%
% David J. Brady
% Duke University
% www.opticalimaging.org
%
function recT = rect(x)
%rect function
recT=1-sign(abs(x)-.5);
recT=recT./2;
reshape(recT,size(x));
return
