Set of Simulink models for the simulation of sigma-delta modulators.
function [bin,xx] = histo(y,N)
% bins the elements of Y into N equally spaced containers within
% the maximum dynamic of Y.
% bin: the number of occurrences for each bin
% xx: is a vector returning the position of each bin
dx = range/N;
x(i) = -range/2 + (i-1)*dx + dx/2;