Académique Documents
Professionnel Documents
Culture Documents
l1=length(signal1);
l2=length(signal2);
for i=1:l1
signal(1,i)=signal1(i);
% Making Both row vector to a matrix
signal(2,i)=signal2(i);
end
Fig 2
Fig 3
first we generate two signals signal1 and
signal2 , and we display these signals in a
figure where we add the sampled signals also
( figure with 2 rows , 2 columns).
Second we name l1 and l2 as the length of
signal 1 and signal2 , to make a for loop
where I changes from 1 to l1 ( or l2 because
of same length) and we make a matrix of 2
rows and i columns , in order to reshape
them by a reshape function which mix the
rows of one matrix in a matrix of the same
row ...ex:
(12345
67890)
==>
(1627384950)
them we draw the tdm signal .
after that we reshape the given matrix to
demultiplex the signal by reshape function ,
where we put the reshape as 2 rows and l1
columns in order to ave the 2 matrices we
had at first, and be for loop we take signal 1
and signal 2 from the reshaped matrix , at
last we draw the 2 demultiplexed signals.