当前位置:网站首页>MPSK抗噪声性能对比(即MPSK标准误码率曲线)
MPSK抗噪声性能对比(即MPSK标准误码率曲线)
2022-07-30 13:53:00 【alley98】
前提概要:在研究MPSK抗噪声性能时,对比各文献的仿真结果,误码率结果非完全一致。若系统基带结构有略微差别(有无编码等),也会导致误码率出现差别。下面记录本人学习过程中,纯MPSK的抗噪声性能。
目录
1、MPSK信号误码率公式
根据曹丽娜《通信原理》,对于任意M进制PSK信号,其误码率公式为

其中,r是输入信号的码元信噪比,即Es/N0;
值得注意的是,每比特的信噪比Eb/E0,与码元信噪比的公式有:
Es/N0=Eb/N0*(log2M*coderate);coderate为编码码率,M为进制数;
上述关于误码率的公式涉及积分,比较复杂,因此在实际应用中,当M足够大时,MPSK误码率公式可以近似写为:

因此erfc(.)表示求相应的互补误差函数,也有资料写为比特误码率相关形式,是等价的。

2、根据误码率公式计算的仿真结果(方法一)
根据上述MPSK的比特误码率公式,相应代码如下:
%% 根据公式算出的M-PSK的误码率曲线
EbN0dB=-10:1:18;
EbN0dBLIN=10.^(EbN0dB/10);
index=1;
mm=2:1:5;
MM=2.^mm;
for i=MM
k=log2(i);
berErr= 1/k*erfc(sqrt(EbN0dBLIN*k)*sin(pi/i));
semilogy(EbN0dB,berErr);
hold on;
index=index+1;
end
axis([-10 18 10^-8 10^0]);grid on;legend('Qpsk','8-psk','16-PSK','32-psk');QPSK、8PSK、16PSK、32PSK的误码率仿真结果如下。

3、根据实际QPSK信号计算的仿真结果(方法二)
以QPSK信号为例,在实际系统中,包括QPSK调制、AWGN信号、QPSK解调,以及最后的误码率计算,相应代码如下。
%% 调用系统QPSK接口、AWGN接口算出的M-PSK的误码率曲线
EbNo_dB = -10:1:18;
frameLength = 1e6;
M_ = 4; % QPSK
K_ = log2(M_); % coded bits per symbol
R_ = 1; %code rate, information bits per coded bit
infoBitsPerSymbol = K_ * R_;
EsNo_dB = EbNo_dB + 10*log10(infoBitsPerSymbol);
snr_ = EsNo_dB;
b = randi([0,1],frameLength,1);
qpskMod = comm.QPSKModulator('BitInput', true, 'PhaseOffset', pi/4, 'SymbolMapping', 'Gray');
s = qpskMod(b);
for i = 1:length(snr_)
r = awgn(s, snr_(i), 'measured');
% 硬判决
qpskDemodHard = comm.QPSKDemodulator('BitOutput', true,...
'PhaseOffset', pi/4,'SymbolMapping','Gray');
b_hat = qpskDemodHard(r);
[~,berqpsk1(i)]=biterr(b_hat,b);
end
hold on,semilogy(EbNo_dB,berqpsk1,'--o'),grid on,legend('QPSK信号');代码中做了比特信噪比Eb/No和信噪比SNR的转换:
SNR = EbN0 + 10log10(nBits*coderate) - 10log10(0.5or1 * upfactor);
coderate同样为编码码率,nBits为每个码元中的信息比特数目。
叠加到上图中,qpsk信号的误码率曲线与理论误码率曲线重叠一致。

边栏推荐
- [Advanced ROS] Lecture 11 Robot co-simulation based on Gazebo and Rviz (motion control and sensors)
- The use of ccs software (app software that makes money reliably)
- Skywalking入门
- No-code development platform application visible permission setting introductory tutorial
- CF603E Pastoral Oddities
- 近两年激光雷达运动物体分割论文阅读小结
- 地形分析的主要内容(流浪地球的特效水平)
- 【ROS进阶篇】第十一讲 基于Gazebo和Rviz的机器人联合仿真(运动控制与传感器)
- 为什么做软件测试一定要学自动化?谈谈我眼中自动化测试的价值
- 高性能数据访问中间件 OBProxy(三):问题排查和服务运维
猜你喜欢

近两年激光雷达运动物体分割论文阅读小结

The truth of the industry: I will only test those that have no future, and I panic...

(HR Interview) Most Common Interview Questions and Skilled Answers

3 years of software testing experience, the interview requires a monthly salary of 22K, obviously he has memorized a lot of interview questions...

00后测试员摸爬滚打近一年,为是否要转行或去学软件测试的学弟们总结出了以下走心建议

ML之PDP:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用DT决策树&RF随机森林+PDP部分依赖图可视化实现模型可解释性之详细攻略

Flask Framework - Sijax

以unity3d为例解读:游戏数据加密

LeetCode二叉树系列——107.二叉树的层序遍历II

人社部公布“数据库运行管理员”成新职业,OceanBase参与制定职业标准
随机推荐
Digital signal processing course lab report (what foundation is needed for digital signal processing)
产品年度营销计划书
00 testers of seasoning after nearly a year, whether to change careers or to learn the software testing students summarized the following heart advice
Flask框架——Sijax
LeetCode二叉树系列——102.二叉树的层序遍历
Synology system installation related file sharing
A new generation of open source free terminal tools, so cool
人社部公布“数据库运行管理员”成新职业,OceanBase参与制定职业标准
高性能数据访问中间件 OBProxy(三):问题排查和服务运维
网站添加能换装可互动的live 2d看板娘
接口自动化框架,lm-easytest内测版发布,赶紧用起来~
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
ddl and dml in sql (the difference between sql and access)
【Advanced Mathematics】【7】Double Integral
svg波浪动画js特效代码
开源工具推荐:高性能计算辅助工具MegPeak
还在说软件测试没有中年危机?9年测试工程师惨遭淘汰
无代码开发平台应用可见权限设置入门教程
获取Google Advertising ID作为唯一识别码
jsArray array copy method performance test 2207300823