% Assign axis limits and constellation
a = [-5 5 -5 5]; c = QAM_constellation(4);
subplot(221);
% Plot all 16 constellation points
Constellation_plot(c, 1, 0, '16 QAM', 'xr');
axis(a); subplot(222);
% Plot constellation points indexed by 2, 4, 6, ...
Constellation_plot(c, 2, 0, 'Partition A', 'or');
axis(a); subplot(223);
% Plot constellation points indexed by 1, 3, 5, ...
Constellation_plot(c, 2, 1, 'Partition B', '+r');
axis(a); subplot(224);
% Plot both subset together using different spots
Constellation_plot(c, 2, 0, '', 'or'); hold on;
Constellation_plot(c, 2, 1, 'Partitions A & B', '+r');
axis(a); hold off;
|