📄 qam4_64.m
字号:
%产生QAM信号
function y = QAM4_64(n);
% n=2;
M=2^n; %信号的元数
switch n
case 2
x = randint(5000,1,M); % Message signal
y = qammod(x,M);
scatterplot(y);
case 3
x = randint(5000,1,M); % Message signal
y = qammod(x,M);
scatterplot(y);
case 4
x = randint(5000,1,M); % Message signal
y = qammod(x,M);
scatterplot(y);
case 5
x = randint(5000,1,M); % Message signal
y = qammod(x,M);
scatterplot(y);
case 6
x = randint(5000,1,M); % Message signal
y = qammod(x,M);
scatterplot(y);
% otherwise
% disp('M不在我们研究的范围');
end;
% x = randint(5000,1,M); % Message signal
% y4QAM = qammod(x,M);
% scatterplot(y4QAM);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -