永发信息网

matlab 怎么改变8QAM的星座映射方式

答案:1  悬赏:60  手机版
解决时间 2021-12-28 02:12
  • 提问者网友:你独家记忆
  • 2021-12-27 22:03
matlab 怎么改变8QAM的星座映射方式
最佳答案
  • 五星知识达人网友:有你哪都是故乡
  • 2022-01-10 05:07
% Create a random digital message
M = 16; % Alphabet size
x = randi([0 M-1],5000,1); % Random symbols

% Use 16-QAM modulation.
hMod = modem.qammod(M);
hDemod = modem.qamdemod(hMod);

% Create a scatter plot and show constellation
scatterPlot = commscope.ScatterPlot('SamplesPerSymbol',1,...
'Constellation',hMod.Constellation);
scatterPlot.PlotSettings.Constellation = 'on';

% Modulate
y = modulate(hMod,x);

% Transmit signal through an AWGN channel.
ynoisy = awgn(y,15,'measured');

% Create scatter plot from noisy data.
update(scatterPlot,ynoisy);

% Demodulate ynoisy to recover the message.
z=demodulate(hDemod,ynoisy);

% Check symbol error rate.
[num,rt] = symerr(x,z)

The output and scatter plot follow. Your numerical results and
plot might vary, because the example uses random numbers.
num =

83

rt =

0.0166
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯