Code covered by the BSD License  

Highlights from
Contemporary Communications Systems Matlab Files

image thumbnail

Contemporary Communications Systems Matlab Files

by

 

Matlab Files in this book

[y,a]=mulaw(x,mu)
function [y,a]=mulaw(x,mu)
%MULAW		mu-law nonlinearity for nonuniform PCM
%		Y=MULAW(X,MU).
%		X=input vector.

a=max(abs(x));
y=(log(1+mu*abs(x/a))./log(1+mu)).*signum(x);

Contact us