image thumbnail

Time multiplexing and demultiplexing

by

 

parallel data comes from inputs port of TDM, This data's create in form of matrix.

TDM_Testm.m
%------------------Program for TDM AND DEMUX-TDM----------------------
%-----------------ENTER THE DATA INFORM OF MATRIX---------------------
clc;
clear all;
close all;
TDM=[];
DTDM=[];
Data=input('Enter the data matrix for diffrent user ');
L=size(Data);
LR=L(1);
LC=L(2);
for j=1:LC
    for i=1:LR 
    Tdm=Data(i,j);
    TDM=[TDM Tdm];
    end
end
TDM
M=1;
LM=length(TDM);
figure
stem(TDM)
xlabel('Time')
ylabel('Amplitude')
for j=1:LC
    
    for i=1:LR 
     if M <= LM   
    
    DTDM(i,j)=TDM(1,M);
    M=M+1;   
    end
    end
end
DTDM
LM=size(DTDM);
L= LM(1);
for j=1:L
figure
stem(DTDM(j,:))
xlabel('Time')
ylabel('Amplitude')
end

Contact us