Three waveforms are timedivision multiplexed over a channel

Three waveforms are time-division multiplexed over a channel using instantaneously sampled PAM. Assume that the PAM pulse width is very narrow and that each of the analog waveforms is sampled every 0.15 s. Plot the (composite) TDM waveform when the input analog waveforms are w_1(t) = 3 sin (2pit) w_2(t) = (t - 1/2) and w_3(t) = -Delta(t - 1)

Solution

clear;

T = 0.05;
t = 0:0.05:3;

% Creating the signals
w1 = 3*sin(2*pi*t);
w1 = w1(:);
w2 = zeros(length(t),1);
w3 = zeros(length(t),1);
for (i = 1:1:length(t))
if (abs(t(i)-1) <= 1)
w2(i) = 1;
end;
if (abs(t(i)-1) <= 1)
w3(i) = (abs(t(i)-1) -1);
end;
end;

% Creating new signal by sampling w1,w2,w3
n = 0:1:62;
tn = n*T;
s = zeros(length(tn),1);
k = 1;
while (k < length(s)-2)
s(k) = w1(k);
k = k+1;
s(k) = w2(k);
k = k+1;
s(k) = w3(k);
k = k+1;
end;

%PLOT_PR(4);
plot(t,w1);
xlabel(\'t\');
title(\'w1(t)\');
pause;

plot(t,w2);
xlabel(\'t\');
title(\'w2(t)\');
pause;

plot(t,w3);
xlabel(\'t\');
title(\'w3(t)\');
pause;

stairs(tn,s);
grid;
xlabel(\'tn\');
title(\'s(tn)\');

 Three waveforms are time-division multiplexed over a channel using instantaneously sampled PAM. Assume that the PAM pulse width is very narrow and that each of

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site