{Msd Academy}

READ IN MY NEW BLOG WITH UPDATES!
A digital telephone converts an analog signal(our voice) to a digital signal before transmission. While the analog signal takes on real number values, the digital signal takes on only a finite set of integer

values. We can model these implementation effects and save memory by storing the digital as
an integer data type rather than as type double. We did this by using the script in the
following.

%% ====== Sources ======
% Load sampled (discretized time) analog sources
% with double values between -1 and +1.
load phonecalls
% See and hear both sources together.
% Note source clipping at -1 and +1.
plot(source1,’r’)
hold on
plot(source2,’b’)
ylabel(‘DOUBLE Values’)
title(‘{\bf Analog Sources}’)
legend(‘Source 1′,’Source 2’)
soundsc([source1,source2],Fs) % Stereo
pause(4)
%% ====== Source coding (quantization) ======
% Digital signals (discretized values) with scaled
% and quantized int8 values between -128 and 127.
sig1 = int8(128*source1);

View original post 123 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s