http://www.mathworks.com/help/comm/ref/compand.html?requestedDomain=www.mathworks.com