Matlab Exercises (Round I) : ELEC-E7210 - Communications Theory Comnet - Aalto University
Matlab Exercises (Round I) : ELEC-E7210 - Communications Theory Comnet - Aalto University
1
Summary of problems 1a, 1b and 1c. Block diagram of link simulator
Problems: Problem 1a
AWGN AWGN SISO
Problem 1b
Rayleigh SISO
Rayleigh SIMO - Diversity MRC
Rayleigh
3
Problem 1a Block diagram of simulator
Compare symbols
Symbols SER
(I = I_hat) ?
Uniform RNG
Compare bits BER
vtI
Gray-encode
Gray-decoder
symbols vtI_hat
vtS Channel vtS_hat
BER
vtX vtY
Symbol mapping + Detector
SNR
Problem 1a
AWGN AWGN SISO
Eav _ s Eav _ s
Eav _ bit = = M =4
log 2 M 2
SNR bit:
(
Pb = Q 2 SNRbit )
Approximation of Theoretical Symbol Error Probability for M >= 4
π
Ps = 2 ⋅ Q 2 SNRbit ⋅ sin
M 5
Problem 1a – Matlab exercise
-Download the file from the course web page and open with an editor
-Set PROBLEM = PROBLEM_A; and sNummSymbols = 10; (easier to visualize variables)
-1
10
-2
10
-4
10
-6
10
0 1 2 3 4 5 6 7 8 9 10
Eb/No
7
Problem 1b Rayleigh fading - SIMO -Diversity
8
Problem 1b Diversity
9
Problem 1b Block diagram with diversity representation
Symbols
Uniform RNG
vtI
Gray-encode
Gray-decoder
symbols vtI_hat
vtS Channel vtS_hat
vtX vtY
Symbol mapping . Detector
↓ ↓ ↓ Diversity representation ↓ ↓ ↓
vtY
x channel 1
h1
+ receiver 1
n1 mY
x channel 2
h2
+ receiver 2 combiner
n1 MRC: NR branches
x channel NR combined by in a
hNR
+ receiver NR weighted sum
Rayleigh
channels 10
nNR
Problem 1b Block diagram of simulator
Compare symbols
Symbols SER
(I = I_hat) ?
Uniform RNG
Compare bits BER
vtI
Gray-encode
Gray-decoder
symbols vtI_hat
vtS Channel vtS_hat
BER
vtX vtY
Symbol mapping . Detector
SNR
Problem 1a
AWGN AWGN SISO
Problem 1b
Rayleigh SISO
Rayleigh SIMO - Diversity MRC
Rayleigh
SISO: Single Input – Single Output The figure shows 3 antennas as an example.
SIMO: Single Input – Multiple Output Simulation with NR antennas is possible. We will
MRC: Maximal Ratio Combining use 1, 2 and 4 receiver antennas in the exercise.
11
Problem 1b – Matlab exercise
12
Problem 1b – Program output (for different number of Rx antennas)
-1
10
-2
10
Bit/Symbol Error Probability
-3
10
-6
10
0 1 2 3 4 5 6 7 8 9 10
Eb/No 13
Problem 2 – Equalization
14
Problem 2 – Multi-path Channel Modeling
15
Problem 2 – Multi-path Channel Modeling
Past symbols
Convolution
ISI 16
Problem 2 – 3 Taps TDL
Amplitude
y[n] =d n f [0] + d n −1 f [1] + d n − 2 f [2] + v[n]
Cases
considered case1:[ f [0], f [1], f [2]] = [1, 0.75, 0.25 ] Ts
in the
problem case 2 :[ f [0], f [1], f [2]] = [1, 0.75e j 2πϕ1 , 0.25e j 2πϕ2 ]
w-2 w-1 w0 w1 w2
18
Problem 2 – ZF - MMSE
===========================
% Zero forcing filter
===========================
FiltZF = H(:,D)'*inv(H*H');
============================
% MMSE filter
============================
FiltMMSE = H(:,D)'*inv(H*H'+N0*eye(Nr));
19
Problem 2 – Simulator structure
Equalization
hard bits
Comparing
BER
Bits in error
Toeplitz matrix
T = toeplitz(c,r)
Convolution
w = conv(u,v)
conv example
>> a = 1:10
a =
1 2 3 4 5 6 7 8 9 10
>> b = [2 10]
b =
2 10
>> conv(a,b)
ans =
2 14 26 38 50 62 74 86 98 110 100
>> 21
Problem 2 – Tasks
Understand the implementation of the channel model and equalizer (explained in class).
MMSE and ZF are already implemented in the code
Compare performance for different number of taps in the equalization filter:
Nr=5;
Nr=11;
Nr=19;
Select different symbol mapping options
SYMBOL_MAPPING = MBPSK;
SYMBOL_MAPPING = MQPSK;
Use the proposed Tapped Delay Line impulse responses
TDL = [1, 3/4, 1/4 ];
TDL = [1, 3/4*exp(2*pi*i*rand(1)), 1/4*exp(2*pi*i*rand(1))];
22
Problem 2 – Program output example
23