?? qam4_64.m
字號:
%產(chǎn)生QAM信號
function y = QAM4_64(n);
% n=2;
M=2^n; %信號的元數(shù)
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 + -