- refactored
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
% 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;
|
||||
|
||||
Reference in New Issue
Block a user