Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

KULLIYYAH OF ENGINEERING

LAB 3
INTRODUCTION TO M-PSK
MODULATION/DEMODULATION
Dr. Akhmad Unggul

SEMESTER 2 2009/2010
GROUP MEMBERS:

NO NAME MATRIC
LAB 3: INTRODUCTION TO M-PSK MODULATION/DEMODULATION

1. M-PSK constellation diagram [14 marks]


a. Generate 200 random bits. Maps to 4-ary numbers and perform QPSK modulation.
How many QPSK symbols do you produce?
Draw the constellation diagram for QPSK using scatterplot() command; (2 marks)
b. Repeat a. for 8PSK modulation. (2 marks)
c. Create zero vector of size (1,20). (zeros())
Perform QPSK modulation. (pskmod())
Add noise with Eb/N0 of 10 dB. (awgn())
Plot the noisy signal samples. (scatterplot())
By visual observation of the scatterplot, how many symbol errors do you find? (2marks)
d. Repeat c. for Eb/N0 of 7dB (2marks)

e. Repeat c for Eb/N0 of 4 dB (2marks)


f. What do you observe from your experiment in c-e? (2marks)
g. What is the variance of the noise process if the SNR is 6dB? (2marks)

2. Monte Carlo simulation for QPSK [18 marks]

a. Generate N=100000 binary numbers. ( randint() )


Convert into 4-ary numbers. ( bi2de() )
Perform qpsk modulation. ( pskmod() )
Add noise to the modulated signal with SNR of 2 dB. (awgn())
Perform demodulation on the noisy signal. (pskdemod())
Compare with your original 4-ary sequence, how many symbol errors do you made?
Compare with your original binary sequence, how many bit errors do you made?
(4 marks)
b. Repeat a for SNR of 4,6,8 and 10. (4x2 marks)
c. Plot your results of BER vs. SNR
To plot with y axis in log : semilogy()
To plot multiple graphs at once see the help of semilogy().
What is your observation on your results?
(6 marks)

3. Repeat your simulation in 2 with 8PSK modulation. [8 marks]


a. Generate N=150000 binary numbers
b. Repeat for SNR of 2,4,6, 8 and 10 dB
c. Plot your results of BER vs. SNR
d. Compare with the BER of QPSK

Useful commands
~= compares two vectors to find out elements in disagreement.
a=[0 1 1 0 0 1] b=[0 0 1 0 1 1]
a~=b [0 1 0 0 1 0] since the 2nd and 4th elements of a and b are different.

sum() sums elements of a vector


sum(a) = 3

mean() finds the average of a vector


std() finds the standard deviation of a vector
x=[0 1 2 3 4 5]
mean(x) = 2.5
std(x) =1.8708

You are required to submit matlab scripts, figures and answers to questions in this lab assignment
before you finish your lab. Prepare your reports using MS words and print it using the designated
printer.

You might also like