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

circ_smooth(x,n)
function y = circ_smooth(x,n)
nx = length(x);
w = ds_hann(n)/(n/2);
xw = conv(x,w);
y = circshift([ xw(n:nx) xw(1:n-1)+xw(nx+1:end)],[0 n/2-1]);

Contact us at files@mathworks.com