Assignment 7
Assignment 7
Bipolar In-phase
stream ݅ In-phase Ǥ݅
generation detection
ݏs
ݏ ݎ ݎd
Despread BER
Spread
calculation
Bipolar quadrature
Quadrature
stream generation
ݍ ݊ detection
ݍො
Complex
operator, j
1
Parameter Mathematical MATLAB
notation variable
In-phase bipolar data i I data
Quadrature bipolar data q Q data
Baseband complex data ss base sig
Spreading code c spread code
Transmit spread signal s tx data
AWGN channel noise n n AWGN
Received signal r rec data
Despread signal rd despread data
Decoded in-phase data î decod sig I
Decoded quadrature data q̂ decod sig Q
1. The spreading code can be generated using the sequence of MATLAB commands: (2
marks)
i. code mat=hadamard(4);
spread code=code mat(1,:);
ii. code mat=hadamard(4);
spread code=code mat(3,:);
iii. code mat=hadamard(4);
spread code=code mat(5,:);
iv. code mat=hadamard(4);
spread code=code mat(6,:);
2. The 3rd row of the Hadmard matrix, code mat, in question 1 is the code sequence: (2
marks)
i. 1 -1 1 -1
ii. 1 1 -1 -1
iii. 1 1 1 1
iv. 1 -1 -1 1
2/7
4. The power of the spread QPSK data stream can be calculated using the following
MATLAB command: (2 marks)
i. 0 dB
ii. 3 dB
iii. 9 dB
iv. 6 dB
i. 2 dB
ii. 9 dB
iii. 6 dB
iv. 3 dB
7. The Bit Error Rate plot versus Eb/No for the spread spectrum QPSK system is: (4
marks)
i.
3/7
10 0
Prob. of Error
10 -1
BER 10 -2
10 -3
10 -4
10 -5
10 -6
-2 0 2 4 6 8 10
Eb/No in dB
ii.
10 0
Prob. of Error
10 -1
10 -2
BER
10 -3
10 -4
10 -5
10 -6
-10 -8 -6 -4 -2 0
Eb/No in dB
iii.
4/7
10 0
Prob. of Error
10 -1
10 -2
BER
10 -3
10 -4
10 -5
-4 -2 0 2 4 6
Eb/No in dB
iv.
10 0
Prob. of Error
10 -1
10 -2
BER
10 -3
10 -4
10 -5
10 -6
-8 -6 -4 -2 0 2 4
Eb/No in dB
8. The Bit Error Rate plot versus SNR for the spread spectrum QPSK system is: (4
marks)
i.
5/7
10 -1
Prob. of Error
10 -2
BER
10 -3
10 -4
10 -5
2 3 4 5 6 7 8 9 10 11
SNR in dB
ii.
10 -1
Prob. of Error
10 -2
BER
10 -3
10 -4
10 -5
-2 -1 0 1 2 3 4 5 6 7
SNR in dB
iii.
6/7
10 -1
Prob. of Error
10 -2
BER
10 -3
10 -4
10 -5
1 2 3 4 5 6 7 8 9
SNR in dB
iv.
10 -1
Prob. of Error
10 -2
BER
10 -3
10 -4
10 -5
-3 -2 -1 0 1 2 3 4
SNR in dB
7/7