Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
80% found this document useful (5 votes)
9K views

TDM Matlab Program

This document generates a sinusoidal signal and triangular signal, combines them using time division multiplexing (TDM) into a single signal, then recovers and separates the original signals using demultiplexing. It plots the original, multiplexed, and recovered signals to demonstrate the TDM and demultiplexing process.

Uploaded by

Santanu Nath
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
80% found this document useful (5 votes)
9K views

TDM Matlab Program

This document generates a sinusoidal signal and triangular signal, combines them using time division multiplexing (TDM) into a single signal, then recovers and separates the original signals using demultiplexing. It plots the original, multiplexed, and recovered signals to demonstrate the TDM and demultiplexing process.

Uploaded by

Santanu Nath
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

TDM

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---------->');

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

You might also like