You are on page 1of 5

Experiment-4

1. AIM:
To plot the basic discrete waveforms such as:
Time-division multiplexing (TDM).

2. THEORY:
Time-division multiplexing (TDM) is a method of putting multiple data streams in a single
signal by separating the signal into many segments, each having a very short duration. ... The
circuit that combines signals at the source (transmitting) end of a communications link is
known as a multiplexer.

3. ALGORITHM:

* Open the MATLAB.

* Open the new editor window.

* Write the code of Time-division multiplexing (TDM).

* Save and run the program.

4. MATLAB CODE:
clc;

clear ll;

close all;

x=0:.5:4*pi;

sig1=8*sin(x);

l=length(sig1);

sig2=8*triang(l);

subplot(221)

plot(sig1);

title('Sinosoidal Signal');

ylabel('Amp---------->');

xlabel('time----------->');
subplot(222);

plot(sig2)

title('trangular Signal');

ylabel('Amp---------->');

xlabel('time----------->');

subplot(223)

stem(sig1);

title('Sinosoidal Signal');

ylabel('Amp---------->');

xlabel('time----------->');

subplot(224);

stem(sig2)

title('trangular Signal');

ylabel('Amp---------->');

xlabel('time----------->');

l1=length(sig1);

l2=length(sig2);

for i=1:l2

sig(1,i)=sig1(i);

sig(2,i)=sig2(i);

end

tdmsig=reshape(sig,1,2*l1);

figure

stem(tdmsig);

title('Tdm Signal')
ylabel('Amp---------->');

xlabel('time----------->');

demux=reshape(tdmsig,2,l2);

for i=1:l1

sig3(i)=demux(1,i);

sig4(i)=demux(2,i);

end

figure

subplot(2,1,1)

plot(sig3)

title('Recovered Sinosoidal Signal');

ylabel('Amp---------->');

xlabel('time----------->');

subplot(2,1,2);

plot(sig4);

title('Recovered Triangular Signal');

ylabel('Amp---------->');

5. RESULT:
6. CONCLUSION:
In this experiment, we have to make wave form of Time-division multiplexing (TDM) via
MATLAB. By this experiment we got three graph of wave form.

You might also like