18 lines
270 B
Matlab
Executable File
18 lines
270 B
Matlab
Executable File
% qam(n)
|
|
% Qam
|
|
%
|
|
|
|
function qamTbl=qamTable(n)
|
|
startIQ = 1.0/sqrt(2.0)
|
|
stepIQ = 2*startIQ/(sqrt(n)-1)
|
|
qamTbl = zeros(n,1);
|
|
|
|
s=1;
|
|
for I=-startIQ:stepIQ:startIQ,
|
|
for Q=-startIQ:stepIQ:startIQ,
|
|
qamTbl(s) = I + i*Q;
|
|
s = s + 1;
|
|
end;
|
|
end;
|
|
|