","o"];n=[512,1024,1024*2,1024*5];pf=0.1;count=0;fori=1:length(n)   r=n(i)+sqrt(2*n(i)).*erfinv(1-pf)*2;  forp=1:length(q)  fork=1:10000    m=randint(1,n(i),2);%m=rand(1,n(i));    s=dmodce(m,1,1,"psk",2);    noise=random("Normal",0,1,1,n(i));    real=q(p).*s+noise;    T=sum(abs(real.^2));    if(T>r)count=count+1;    end  end  pd(p)=count/10000;  count=0;  end   plot(SNR,pd,[b1(i)b2(i)b3(i)])   holdonendlegen-IMDN开发者社群-imdn.cn"> ","o"];n=[512,1024,1024*2,1024*5];pf=0.1;count=0;fori=1:length(n)   r=n(i)+sqrt(2*n(i)).*erfinv(1-pf)*2;  forp=1:length(q)  fork=1:10000    m=randint(1,n(i),2);%m=rand(1,n(i));    s=dmodce(m,1,1,"psk",2);    noise=random("Normal",0,1,1,n(i));    real=q(p).*s+noise;    T=sum(abs(real.^2));    if(T>r)count=count+1;    end  end  pd(p)=count/10000;  count=0;  end   plot(SNR,pd,[b1(i)b2(i)b3(i)])   holdonendlegen - IMDN开发者社群-imdn.cn">
登录
首页 » Matlab » 关于能量检测BPSK 的matlab仿真代码

关于能量检测BPSK 的matlab仿真代码

于 2022-09-30 发布 文件大小:6.78 kB
0 9
下载积分: 2 下载次数: 1

代码说明:

NR=-24:2:-6; q=10.^(SNR/10); b1=["r","g","b","k"]; b2=[":",":",":",":"]; b3=[".","+",">","o"]; n=[512,1024,1024*2,1024*5]; pf=0.1; count=0; for i=1:length(n)      r=n(i)+sqrt(2*n(i)).*erfinv(1-pf)*2;     for p=1:length(q)     for k=1:10000        m=randint(1,n(i),2); %m=rand(1,n(i));        s=dmodce(m,1,1,"psk",2);        noise=random("Normal",0,1,1,n(i));        real=q(p).*s+noise;        T=sum(abs(real.^2));        if(T>r) count=count+1;        end     end     pd(p)=count/10000;     count=0;     end      plot(SNR,pd,[b1(i) b2(i) b3(i)])      hold on end legen

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Rcfilter
    FDFD-Electromagnetic-RC filter
    2013-07-12 04:31:43下载
    积分:1
  • A5bar1
    code matlab for gmsk
    2012-06-19 12:27:40下载
    积分:1
  • jietui_v78
    BP神经网络的整个训练过程,实现了对10个数字音的识别程序分析了该信号的时域、频域、倒谱,循环谱等。( The entire training process BP neural network, Realization of 10 digital audio recognition program Analysis of the signal time domain, frequency domain, cepstrum, cyclic spectrum, etc.)
    2016-11-15 13:25:28下载
    积分:1
  • pso-rbf算法程序
    使用matlab编写的粒子群算法优化的RBF神经网络,可以在一定程度上解决BP神经网络易于陷入局部最优的缺点,程序有点简单  但是可以运行,
    2023-04-13 06:25:04下载
    积分:1
  • efg1d
    1D MATLAB EFG CODE LINE (1D MATLAB EFG CODE LINE)
    2007-05-19 19:56:53下载
    积分:1
  • fisher-recognization
    fisher判别法 本实验通过编制程序体会Fisher线性判别的基本思路,理解线性判别的基本思想,掌握Fisher线性判别问题的实质。 (fisher discriminant method of the present experiment with basic programming experience Fisher linear discriminant ideas, understand the basic idea of ​ ​ a linear discriminant, master Fisher linear discriminant substantive issues.)
    2015-01-17 20:47:22下载
    积分:1
  • Decimal genetic algorithm matlab program, the program is primarily to achieve th...
    十进制遗传算法matlab程序,该程序主要实现十进制下的遗传算法.-Decimal genetic algorithm matlab program, the program is primarily to achieve the decimal under the genetic algorithm.
    2023-06-17 15:50:05下载
    积分:1
  • ManUtd
    this is wonderful source code
    2010-07-22 02:22:09下载
    积分:1
  • VideoSupervise
    自己写的视频监控实验程序,检测车辆的经过,内有实验数据.(Write your own video surveillance test procedures)
    2010-08-06 16:11:21下载
    积分:1
  • fftCooley_Tukey
    快速傅立叶变换的补0问题 相信会对大家有帮助 CNKI的浏览器可以打开(Fast Fourier Transform Regrant 0 issues we believe will help CNKI browser can open)
    2008-01-17 13:02:11下载
    积分:1
  • 696532资源总数
  • 103709会员总数
  • 38今日下载