1. Quadrature Amplitude Modulation (MQAM)
clc;
close all;
clear all;
M = 4; %M=8; 16; 32; 64;128; 256
x = (0:M-1)';
%Modulate the data using the qammod function.
y = qammod(x,M);
%Display the modulated signal constellation using the scatterplot function.
figure(1);
scatterplot(y)