当前位置:网站首页>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信号的误码率曲线与理论误码率曲线重叠一致。

边栏推荐
- Teach you how to write an eye-catching software testing resume, if you don't receive an interview invitation, I will lose
- 跳槽前,把自己弄成卷王
- The main content of terrain analysis (the special effect level of the wandering earth)
- Flask Framework - Flask-Mail Mail
- Simple understanding of Precision, Recall, Accuracy, TP, TN, FP, FN
- Eclipse connects to SQL server database "recommended collection"
- (HR Interview) Most Common Interview Questions and Skilled Answers
- 产品年度营销计划书
- Digital signal processing course lab report (what foundation is needed for digital signal processing)
- Hello,World
猜你喜欢

pytorch与keras的相互转换(代码以LeNet-5为例)

The path to uniting the programmer: "titles bucket" to the highest state of pragmatic

“12306” 的架构到底有多牛逼
![[Advanced ROS] Lecture 11 Robot co-simulation based on Gazebo and Rviz (motion control and sensors)](/img/65/7bd87794ebde510ecfd1b0e4bd4c94.png)
[Advanced ROS] Lecture 11 Robot co-simulation based on Gazebo and Rviz (motion control and sensors)

No-code development platform application visible permission setting introductory tutorial

人社部公布“数据库运行管理员”成新职业,OceanBase参与制定职业标准

LeetCode二叉树系列——116.填充每个节点的下一个右侧指针

关于容器的小案例

【Advanced Mathematics】【7】Double Integral

Six-faced ant financial clothing, resisting the bombardment of the interviewer, came to interview for review
随机推荐
20220729 Securities, Finance
sql中ddl和dml(sql与access的区别)
二手手机销量突破3亿部,与降价的iPhone夹击国产手机
网络安全——lcx的使用
Redis6.0 source code learning (5) ziplist
ECCV 2022 | 通往数据高效的Transformer目标检测器
华为7年经验的软件测试总监,给所有想转行学软件测试的朋友几点建议
OFDM 十六讲 3- OFDM Waveforms
Baijiahao cancels the function of posting documents on the interface: the weight of the plug-in chain is blocked
还在说软件测试没有中年危机?9年测试工程师惨遭淘汰
[C# 循环跳转]-C# 中的 while/do-while/for/foreach 循环结构以及 break/continue 跳转语句
MQTT网关读取西门子PLC数据传输到阿里云平台案例教程
代码杂谈:从一道面试题看学会Rust的难度
ddl and dml in sql (the difference between sql and access)
Teach you how to write an eye-catching software testing resume, if you don't receive an interview invitation, I will lose
Allure进阶-动态生成报告内容
There is a risk of water ingress in the battery pack tray and there is a potential safety hazard. 52,928 Tang DMs are urgently recalled
CF1677E Tokitsukaze and Beautiful Subsegments
Learning notes - 7 weeks as data analyst "in the first week: data analysis of thinking"
激光雷达点云语义分割论文阅读小结