Princess Sumaya University For Technology Faculty of Engineering Dr. Ashraf Tahat Digital Communication HW Project

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Princess Sumaya University for Technology

Faculty of Engineering

Dr. Ashraf Tahat

Digital Communication

HW Project

Name: Mohammad Sayel Falah


ID: 20130486

Problem 7.24)
A) F(x) = sgn(x) [ln(1+mu|x|)/ln(1+mu)]

B)
i)
fs=20;
ts=1/fs;
t=[0:ts:20];
s=10*exp(-t)+sin(2*pi*t);
q=8;
s_mu_q=floor(2^(q-1)*s_mu);
plot(s-s_mu_q);
rms_mu=sqrt(mean((s-s_mu_q).^2));

ii)
fs=20;
ts=1/fs;
t=[0:ts:20];
s=10*exp(-t)+sin(2*pi*t);
mu=225;
s=s/max(abs(s)+eps);
s_mu=log(1+mu*abs(s))/log(1+mu).*sign(s);
q=8;
s_mu_q=floor(2^(q-1)*s_mu);
s_mu_r=(exp(log(1+mu)*abs(s_mu_q)/2^(q-1))-1)/mu.*sign(s_mu_q);
plot(s-s_mu_r);
rms_mu=sqrt(mean((s-s_mu_r).^2));

C)

D) in increasing the numbers of quantization levels the error will decrease and vise
versa.

You might also like