QPSK Modulation Simulation Using Matlab
QPSK Modulation Simulation Using Matlab
SUBMITTED BY :
NAME USN
Uzma A Soudagar 2SD15EC112
Rajeshwari S S 2SD15EC070
Waveform Of QPSK
Advantages Of QPSK :
» In QPSK modulation, two bit are carried by one single analog
carrier. Hence bandwidth is twice efficient in comparison to
BPSK modulation. Here symbol rate is half of the raw bit rate.
» BPSK is bandwidth efficient modulation technique as two bits
are carried by single carrier.
Disadvantages Of QPSK :
» In QPSK modulation technique, one complex symbol
represents two binary bits. Due to this, QPSK receiver is more
complex compares to BPSK receiver due to four states needed to
recover binary data information.
» Due to above reason, QPSK is not power efficient modulation
technique compare to other modulation type as more power is
required to transmit two bits.
Matlab Program :
b=[];
qpsk=[];
be_c=[];
%QPSK
clc;
clear all;
close all;
%taking input sequence
bits = [0 1 1 0 1 0 0 1];% input('Enter bit sequence');
%Initialisation
N = length(bits);
fc=1;
t=0:0.001:2;
bes=[];
bec=[];
b_o=[];
b_e=[];
bite=[];
bito=[];
for i=1:N
bx=bits(i)*ones(1,1000);
b=[b bx];
end
%separating even and odd bits
for i=1:N
if bits(i)==0
bits(i)=-1;
end
if mod(i,2)==0
ebit=bits(i);
b_e=[b_e ebit];
else
obit=bits(i);
b_o=[b_o obit];
end
end
%calculating QPSK signal
for i=1:N/2
be_c=(b_e(i)*cos(2*pi*fc*t));
bo_s=(b_o(i)*sin(2*pi*fc*t));
q=be_c+bo_s;
even=b_e(i)*ones(1,2000);
odd=b_o(i)*ones(1,2000);
bite=[bite even];
bito=[bito odd];
qpsk=[qpsk q];
bec=[bec be_c];
bes=[bes bo_s];
end
figure('name','QPSK')
%ip wave
subplot(4,1,1);
plot(b,'o');
grid on;
axis([0 (N*1000) 0 1])
xlabel('time');
ylabel('input bit stream');
title('\bf\color{blue} ');
Output Waveform :