误码率matlab怎么计算,PSK理论误码率与实际误码率MATLAB仿真程序(最新整理)

《PSK理论误码率与实际误码率MATLAB仿真程序(最新整理)》由会员分享,可在线阅读,更多相关《PSK理论误码率与实际误码率MATLAB仿真程序(最新整理)(2页珍藏版)》请在人人文库网上搜索。

1、psk clc; clear all; close all;nsymbol = 1e6;%每种信噪比下符号数的发送符号数data = randint(1,nsymbol,0,1);%产生 1 行,nsymbol 列均匀分布的随机数 0,1 bpsk_mod = 2*data-1;%调制,0 转化为-1;1 转化为 1spow = norm(bpsk_mod).2/nsymbol;%求每个符号的平均值,其中 norm 是求向量 2 范数函数SNR_dB = 1:10;%信噪比 dB 形式SNR = 10.(SNR_dB/10);%信噪比转化为线性值for loop= 1:length(SNR)s。

2、igma = sqrt(spow/(2*SNR(loop);%根据符号功率求噪声功率s_receive=bpsk_mod+sigma*(randn(1,length(bpsk_mod)+j*randn(1,length(bpsk_mod);%添加复高斯白噪声bpsk_demod = (real(s_receive)0);%解调data_receive=double(bpsk_demod);%接收数据,转化为err,ser(loop) = symerr(data,data_receive);%误码率endser_theory = qfunc(sqrt(2*SNR);%理论误码率,注意 Q 函数和。

3、误差函数的对应关系semilogy(SNR_dB,ser,-k*,SNR_dB,ser_theory,-bo); title(BPSK 信号在 AWGN 信道下的性能);xlabel(信噪比/dB);ylabel(误码率);legend(误码率,理论误码率); grid on;“”“”At the end, Xiao Bian gives you a passage. Minand once said, people who learn to learn are very happy people. In every wonderful life, learning is an eternal。

4、 theme. As a professional clerical and teaching position, I understand the importance of continuous learning, life is diligent, nothing can be gained, only continuous learning can achieve better self. Only by constantly learning and mastering the latest relevant knowledge, can employees from all walks of life keep up with the pace of enterprise development and innovate to meet the needs of the market. This document is also edited by my studio professionals, there may be errors in the document, if there are errors, please correct, thank you。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值