","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 54
下载积分: 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 个回复

  • FWI-MATLAB
    说明:  一个的地震数据全波形反演FWI软件包,可以直接运行查看结果,由于受文件大小限制,把所有的地震记录删除了,需要先模拟地震记录,雷克子波主频在反演代码里面可以找到。(A FWI software package for full waveform inversion of seismic data can be directly run to check the results. Due to the limitation of file size, all seismic records are deleted. It is necessary to simulate the seismic records first, and the main frequency of reyko wavelet can be found in the inversion code.)
    2021-01-11 22:28:48下载
    积分:1
  • san2
    Hook-Jeeves法解无约束最优化问题(Hook-Jeeves Solving unconstrained optimization problem)
    2009-12-01 15:56:02下载
    积分:1
  • NURBS-surface
    这是在MATLAB-2008a环境下编写的NURBS曲面生成程序,可以通过调整控制顶点和各个顶点的权重来调整曲面的形状。(This is a MATLAB-2008a environment, prepared by the NURBS surface generation program, you can adjust the control points and weights of all vertices to adjust the surface shape.)
    2020-12-03 19:59:25下载
    积分:1
  • tmz_with_npml_scan
    2D FDTD MATLAB code using NPML ABC
    2009-07-30 05:33:27下载
    积分:1
  • monitor
    基于MATLAB实现调用摄像头,监视或拍照等功能(Call camera, monitor or camera)
    2015-04-04 17:44:54下载
    积分:1
  • Wavelet-Methods-for-Time-Series-Analysis-in-Matla
    This document describes the feature by feature the use of Wavelet Methods for Time Series Analysis.
    2013-12-10 06:22:58下载
    积分:1
  • huamo
    永磁同步电机的滑模控制,毕业设计做的,不可多得的好模型(Sliding mode control of permanent magnet synchronous motor, graduation design done, the rare good model)
    2021-02-16 21:29:47下载
    积分:1
  • matlab实现马赛克代码
    掌握彩色图像描述方法与基本的处理方法,彩色图像马赛克处理:将一幅彩色图像打上马赛克,并输出打马赛克后的图像。
    2023-03-20 11:50:04下载
    积分:1
  • spectrum
    这个例子阐明了发生在时变系统中的频谱扩展,系统的带通输入时在某个频率上的音频信号(This example illustrates the system occurred in the time-varying spectrum expansion of the system' s band-pass input on a frequency of audio signal)
    2009-12-23 22:18:15下载
    积分:1
  • maichongxiangying
    脉冲响应不变法设计巴特沃斯数字低通滤波器(Impulse response invariant method design Butterworth digital low-pass filter)
    2012-12-30 02:30:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载