Professional Documents
Culture Documents
% filtered sequence
st_alpha5 = conv(amU,gt_alpha5);
st_alpha1 = conv(amU,gt_alpha1);
% taking only the first 10000 samples
st_alpha5 = st_alpha5([1:10000]);
st_alpha1 = st_alpha1([1:10000]);
st_alpha5_reshape = reshape(st_alpha5,fs*2,N*fs/20).';
st_alpha1_reshape = reshape(st_alpha1,fs*2,N*fs/20).';
close all
figure;
plot([0:1/fs:1.99],real(st_alpha5_reshape).','b');
title('eye diagram with alpha=0.5');
xlabel('time')
ylabel('amplitude')
axis([0 2 -1.5 1.5])
grid on
figure;
plot([0:1/fs:1.99],real(st_alpha1_reshape).','b');
title('eye diagram with alpha=1')
xlabel('time')
ylabel('amplitude')
axis([0 2 -1.5 1.5 ])
grid on
For this experiment, consider the channel as nonlinear with the following input-output relation:
x(t) = s2(t) + as(t)
where s(t) is the channel input and x(t) is the channel output, and a is a constant.
Write an m-file containing the code above with the aforementioned input signal x(t). This m-file should have inputs
(M, a) where M as the number of symbols and a as the coefficient in the given input x(t). The output should be a plot
of the eye diagram. Label this m-file as <GroupName>_MP5.m.
a. Do
the
experiment
for
a
=
0,
0.05,
0.1,
0.2.
Save
the
figures
as
ECE422_<SecNum>_<GroupNum>_MP6_a00.jpg,
ECE422_<SecNum>_<GroupNum>_MP6_a005.jpg,
ECE422_<SecNum>_<GroupNum>_MP6_a01.jpg,
ECE422_<SecNum>_<GroupNum>_MP6_a02.jpg respectively. Set M = 2.
b. Vary
the
symbols
for
M
=
2,
4,
8
and
16.
Save
the
figures
as
ECE422_<SecNum>_<GroupNum>_MP6_M2.jpg,
ECE422_<SecNum>_<GroupNum>_MP6_M4.jpg,
ECE422_<SecNum>_<GroupNum>_MP6_M8.jpg,
ECE422_<SecNum>_<GroupNum>_MP6_M16.jpg respectively. Set a = 1.
c. Discuss how varying a and M affects the shape of the eye pattern in the document file
ECE422_<SecNum>_<GroupNum>_MP6.doc.