Code covered by the BSD License  

Highlights from
Adaptive Filtering

from Adaptive Filtering by Paulo S. R. Diniz
MATLAB files to implement all Adaptive Filtering Algorithms in this book.

qround(V,b)
function Vq = qround(V,b)
%QROUND Quantizes (rounds) decimal part.
%
%   Vq=QROUND(V,b) quantizes the decimal part of each element in
%                  vector V by rounding it to b bits.

	Vq=2^(-b)*round(V*2^b);
end

Contact us at files@mathworks.com