32QAM MODULATION(BER vs SNR)

Program:
clc;
clear all;
close all;
M=64;
k=log2(M);
n=10^5;
x = randi([0 1],n,4);
Z = bi2de(x);
y = qammod(Z,M,0,’gray’);
scatterplot(y);
N=length(y);
SNR=-3:20;
for i=1:length(SNR)
noise2=awgn(y,SNR(i));
Y2=qamdemod(noise2,M,0,’gray’);
ser2=step(comm.ErrorRate,Z,Y2);
serVec2(i)=ser2(1);
end
semilogy(SNR,serVec2);
axis([-3 20 10^-5 1])
grid on
xlabel(‘Eb/No (dB)’); ylabel(‘BER’);
title(’32QAM Modulation in an AWGN channel’);

RESULT:

fig7_cs

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: