Professional Documents
Culture Documents
Lab Report 10
Lab Report 10
ENGINEERING
Digital Communication:
SUBMITTED BY:
MUHAMMAD FARAN KHURSHID
SUBMITTED TO:
LE Hamza Shami
DATE:
25-05-2023
Plotting the Constellation Diagram for 8-PSK using Natural
Mapping and Gray Mapping:
Tasks:
Hardware/Software Required:
Hardware: DELL Inspiron 15 3000(Laptop)
Software Tool: MATLAB R2022b
Code:
clear all;
close all;
clc;
disp('DC LAB 10:')
%--------------------------------------------------------------------
A = rand(1, 100000);
I = round(2 * A - 1);
Q = round(2 * sqrt(3) * A - 1);
pulse_length = 10;
I_pulse = ones(1, pulse_length);
Q_pulse = ones(1, pulse_length);
figure('Name', 'Natural mapping')
scatter(I, Q, [], 'filled')
axis([-1 1 -1 1])
title('Natural mapping')