Code covered by the BSD License  

Highlights from
Delta Sigma Toolbox

image thumbnail
from Delta Sigma Toolbox by Richard Schreier
High-level design and simulation of delta-sigma modulators

y=sgn(x)
function y=sgn(x)
%y=sgn(x) The signum function. Unlike sign(), sgn(0)=1.
y=sign(sign(x)+.5);

Contact us at files@mathworks.com