Implementation of Time division multiplexing in matlab


Code:

t=0:0.5:4*pi;
x=sin(t);
y=triang(length(t));
y1=[];
for i=1:length(t)
    y1=[y1 x(i) y(i)];
end
stem(y1);


No comments