matlab 2ask误码率曲线,MATLAB模拟2ASK调制误码率与信噪比关系曲线的程序(最新整理)...

本文介绍了一种使用MATLAB模拟2ASK调制的方法,包括生成随机二进制序列、进行2ASK调制及相干解调的过程,并通过加入白噪声来测试不同信噪比下系统的误码率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

《MATLAB模拟2ASK调制误码率与信噪比关系曲线的程序(最新整理)》由会员分享,可在线阅读,更多相关《MATLAB模拟2ASK调制误码率与信噪比关系曲线的程序(最新整理)(3页珍藏版)》请在人人文库网上搜索。

1、模拟 2ASK% Pe=zeros(1,26); jishu=1;for snr=-10:0.5:15 max = 10000;s=round(rand(1,max);%长度为 max 的随机二进制序列f=100;%载波频率nsamp = 1000;每个载波的取样点数tc=0:2*pi/999:2*pi;tc 的个数应与 nsamp 相同cm=zeros(1,nsamp*max); cp=zeros(1,nsamp*max); mod=zeros(1,nsamp*max);for n=1:max;if s(n)=0;m=zeros(1,nsamp); b=zeros(1,nsamp);else。

2、 if s(n)=1;m=ones(1,nsamp); b=ones(1,nsamp); endendc = sin(f*tc);cm(n-1)*nsamp+1:n*nsamp)=m; cp(n-1)*nsamp+1:n*nsamp)=b; mod(n-1)*nsamp+1:n*nsamp)=c;endtiaoz=cm.*mod;%2ASK 调制t = linspace(0,length(s),length(s)*nsamp);tz=awgn(tiaoz,snr);%信号 tiaoz 中加入白噪声,信噪比为 SNR=10dB jiet = 2*mod.*tz;%相干解调N,Wn=buttord。

3、(0.2,0.3,1,15);b,a=butter(N,Wn); dpsk=filter(b,a,jiet);%低通滤波% 抽样判决,判决门限为 0.5 depsk = zeros(1,nsamp*max);for m = nsamp/2:nsamp:nsamp*max; if dpsk(m) = 0.5; for i = 1:nsampdepsk(m-500)+i) = 1;endendend endwrong=0;for i=1:length(cp);if cp(i)=depsk(i); wrong=wrong+1;endendendPe(jishu)=wrong/length(cp); 。

4、jishu=jishu+1;snr=-10:0.5:15;semilogy(snr,Pe,*);%理论计算snr=-10:0.1:15;Pet=0.5*erfc(10.(snr/10)/4).0.5); hold on;semilogy(snr,Pet); xlabel(SNR/dB);ylabel(P_e);legend(模拟结果,理论值);“”“”At the end, Xiao Bian gives you a passage. Minand once said, people who learn to learn are very happy people. In every wond。

5、erful life, learning is an eternal 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。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值