In this QPSK signal generation in Matlab tutorial you will learn how to write matlab code to generate QPSK signal.

The mathematical form of QPSK signal is-

where, and T is the symbol duration

The QPSK signal can also be written in the following compact form,

where,

## Matlab Code for QPSK signal generation in Matlab

The matlab code to generate these four QPSK signal is below:

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 |
% Generation of QPSK signal clear echo on Ac=1 %Carrier Amplitude fs=100; %Sampling frequency fc=6; % carrier frequency t=0:1/fs:5; s00=Ac*cos(2*pi*fc*t-(3*pi/4)); %QPSK for dibit 00 s10=Ac*cos(2*pi*fc*t-(pi/4)); %QPSK for dibit 10 s11=Ac*cos(2*pi*fc*t+(3*pi/4)); %QPSK for dibit 11 s01=Ac*cos(2*pi*fc*t+(pi/4)); %QPSK for dibit 01 % plotting commands follow subplot(4,1,1); plot(t,s00); title('s(t) for dibit 00') subplot(4,1,2); plot(t,s10); title('s(t) for dibit 10') subplot(4,1,3); plot(t,s11); title('s(t) for dibit 11') subplot(4,1,4); plot(t,s01) title('s(t) for dibit 01') |

The Graph of QPSK signal in Matlab is shown below.