Plot the constellation points using one of the symbol sets. For each constellation point, assign a label indicating the Gray and natural binary values for each symbol.
For Gray binary symbol mapping, adjacent constellation points differ by a single binary bit and are not numerically sequential.
For natural binary symbol mapping, adjacent constellation points follow the natural binary encoding and are sequential.
scatterplot(symgray,1,0,'b*');
for k = 1:M
text(real(symgray(k))-0.6,imag(symgray(k))+0.6,...
dec2base(mapgray(k),2,4));
text(real(symgray(k))-0.2,imag(symgray(k))+1.2,...
num2str(mapgray(k)));
text(real(symbin(k))-0.6,imag(symbin(k))-0.6,...
dec2base(mapbin(k),2,4),'Color',[1 0 0]);
text(real(symbin(k))-0.2,imag(symbin(k))-1.2,...
num2str(mapbin(k)),'Color',[1 0 0]);
end
axis([-M M -2 2])
Initial phase of the modulated signal (in radians), specified as a real
scalar.
Example: pi/4
Data Types: double
symorder — Mapping order for modulation symbols 'bin' (default) | 'gray'
Mapping order for the modulation symbols, specified as 'bin' or
'gray'. This argument specifies how the function assigns binary
vectors to corresponding integers.
If symorder is 'bin', the function
uses a natural binary-coded mapping order.
If symorder is 'gray', the function
uses a Gray-coded mapping order.
y — Complex baseband representation of PAM-modulated signal vector | matrix
Complex baseband representation of a PAM-modulated signal, returned as vector or
matrix of complex values. The modulated signal has a minimum Euclidean distance of 2.
The columns of y represent independent channels.
Data Types: double | single Complex Number Support: Yes
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.