Bit Error Rate Analysis

Using MATLAB code to simulate QPSK communication system, and displaying BER graphs of other modulation schemes. For instance, the program compares the theoretical and simulation performance of QPSK system and the performance of QPSK and 16QAM in Rayleigh Fading.

Example code of plotting Rayleigh Fading graph

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%----------------------------Rayleigh Fading----------------------

figure(3);

EbNo_dB = 0:2:150;

BER_QPSK = berawgn(EbNo_dB,'psk',4,'nondiff');
semilogy(EbNo_dB,BER_QPSK)
grid on
hold on

BER_16QAM = berawgn(EbNo_dB,'qam',16);
semilogy(EbNo_dB,BER_16QAM)
grid on
hold on

BER_QPSK_RAY = berfading(EbNo_dB,'psk',4,1);
semilogy(EbNo_dB,BER_QPSK_RAY)
grid on
hold on

BER_16QAM_RAY = berfading(EbNo_dB,'qam',16,1);
semilogy(EbNo_dB,BER_16QAM_RAY)
grid on
hold on

xlabel('EbNo(dB)');
ylabel('Bit Error Rate');
set(findall(gca, 'Type', 'Line'),'LineWidth',1);


title('Performance of QPSK and 16QAM in Rayleigh Fading');
legend({'QPSK','16QAM','QPSK in Rayleigh Fading','16QAM in Rayleigh Fading'})

Full code can be found on GITHUB




Key Skills developed: