0% found this document useful (0 votes)
6 views3 pages

PSK BER Calculation Using MATLAB.

The document presents simulation results for PSK and QAM modulation techniques, including practical and theoretical Bit Error Rate (BER) characteristics. It includes MATLAB code for simulating PSK and QAM modulation, calculating BER, and finding the probability of symbol error for both modulation types. Various figures illustrate the results and characteristics of the simulations.

Uploaded by

Mahfuzur Rahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

PSK BER Calculation Using MATLAB.

The document presents simulation results for PSK and QAM modulation techniques, including practical and theoretical Bit Error Rate (BER) characteristics. It includes MATLAB code for simulating PSK and QAM modulation, calculating BER, and finding the probability of symbol error for both modulation types. Various figures illustrate the results and characteristics of the simulations.

Uploaded by

Mahfuzur Rahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Simulation Results:

1. PSK:

Fig-1: Practical BER Characteristics of PSK. Fig-2: BER Characteristics using “bertool” for PSK.

Theoretical Characteristics:

Fig-3: Probability of symbol error for PSK signals.


2. QAM:

Fig-3: Practical BER Characteristics of QAM. Fig-4: BER Characteristics using “bertool” for QAM.

Fig-6: Probability of symbol error for QAM signals.

MATLAB Code:
PSK Modulation:
clc
N= 1e6;
M = 16;
m = randi([0 M-1],N,1);
S = pskmod(m,M); %Modulation
EbNo = 0:20;
for n = 1:(length(EbNo))
SNR = EbNo + 10*log10(log2(M));
Sn = awgn(S,SNR(n),'measured');
demod = pskdemod(Sn,M);
[Ner,BER(n)] = biterr(m,demod); %Bit Error Rate (BER) Calcultion
end
semilogy(EbNo,BER)
grid on
Code for Finding Probability of Error:
clc
clear all
M = 16;
EbNo = 0:20;
Pe = 2*qfunc(sqrt((2*pi*pi*log2(M)*(10.^(EbNo/10)))/(M*M)));
semilogy(EbNo,BER)
grid on

QAM Modulation:
clc
clear all
N= 1e6; %No. of bits
M = 4; %M-ary modulation
m = randi([0 M-1],N,1);
S = qammod(m,M); %Modulation
%Channel characteristics
EbNo = 0:20;
for n = 1:(length(EbNo))
SNR = EbNo + 10*log10(log2(M));
Sn = awgn(S,SNR(n),'measured');
demod = qamdemod(Sn,M);
[Ner,BER(n)] = biterr(m,demod); %Bit Error Rate (BER) Calcultion
end
semilogy(EbNo,BER)
grid on
hold on

Code for Finding Probability of Error:


clc
clear all
M = 4; %M-ary modulation
EbNo = 0:20;
Pe = 4*qfunc(sqrt((3*log2(M)*(10.^(EbNo/10)))/(M-1)));
semilogy(EbNo,Pe)
grid on
hold on

You might also like