% Simulation of digital M-QAM modulation schemes over an AWGN channel
% Prof. Robert Morelos-Zaragoza, San Jose State University, May 2003.
% Needs the Communications toolbox and file "normrnd.m"
clear all;
Fd = 1; Fs = 1;
N= 70000 ; % Number of simulated points
method='qask'; % Quadrature amplitude modulation
set(1) = 4; set(2) = 16; set(3) = 64; % Sizes of constellations
for j=1:1:3
M = set(j); % Size of M-QAM constellation
l=1:1:M;
aux = sum(abs(modmap(l-1,Fd,Fs,method,M)).^2)/M;
energy(j) = aux(1)+aux(2);
i=1;
for esno=0:2:26;
sigma = sqrt(10^(-esno/10)/2)*sqrt(energy(j));
x = randint(N,1,M); % Random information symbols (integers)
y = modmap(x,Fd,Fs,method,M); % Mapped signal
ynoisy = y + normrnd(0,sigma,N*Fs,2); % Gaussian noise added
z = demodmap(ynoisy,Fd,Fs,method,M); % Demapped noisy signal
s = symerr(x,z); % Number of symbol errors after demapping
ber(j,i) = (s/N)/log2(M); % Bit error rate (BER) with Gray mapping
snr(i) = esno;
i=i+1;
end
j
end
semilogy(snr,ber(1,:),'-b^',snr,ber(2,:),'-bo',snr,ber(3,:),'-bs');
grid on;
ylabel('BER');
xlabel('E/N_0 (dB)');
legend('QPSK', '16-QAM', '64-QAM',1);
title('Error performance of M-QAM. SJSU. Spring 2003.');
qam.rar_QAM 信号_QAM信号_matlab qam_qaM MATLAB_qam
版权申诉
16 浏览量
2022-07-14
20:52:26
上传
评论
收藏 858B RAR 举报
Kinonoyomeo
- 粉丝: 76
- 资源: 1万+
最新资源
- Python 程序语言设计模式思路-行为型模式:策略模式:将算法封装成独立的类,并使它们可以互相替换及支付模式数据压缩
- main.py
- Last Loaded Test.DBK
- Screenshot_20240520_163011.jpg
- ubuntu-python3-whisper-tornado docker镜像 Dockerfile
- ubuntu-python3-whisper-tornado docker镜像07
- 新录音 8.m4a
- ubuntu-python3-whisper-tornado docker镜像
- ubuntu-python3-whisper-tornado docker镜像
- ubuntu-python3-whisper-tornado docker镜像09
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈