资源简介
该代码绘制了在虚警概率一定时,检测概率和信噪比之间的关系曲线即检测器的检测性能曲线。代码参考了文献《Sensing-Throughput Tradeoff for Cognitive Radio Networks》。
代码片段和文件信息
% This code is to plot receiver operating characteristic curve for simple energy
% detection when the primary signal is real Gaussian signal and noise is
% addive white real Gaussian. Here the threshold is available
% analytically.
% Code written by: Sanket Kalamkar Indian Institute of Technology Kanpur
% India.
%% 以下代码绘制在虚警概率一定时,检测概率和信噪比之间的关系曲线称为检测器的检测性能曲线
clc
close all
clear all
L = 1000; % The number of samples
snr = 0.01:0.01:10;
Pf = 10e-4; % Pf = Probability of False Alarm 虚警概率确定
%% Simulation to plot SNR vs.Probability of Detection (Pd)
for m = 1:length(snr)
i = 0;
thresh = (qfuncinv(Pf)./sqrt(L))+ 1; % Theoretical value of Threshold refer Sensing-Throughput Tradeoff for Cognitive Radio Networks Y. C. Liang
for kk = 1:5000 % Number of Monte Carlo Simulations(https://cn.mathworks.com/discovery/monte-carlo-simulation.html)
n = randn(1L); % AWGN noise with mean 0 and variance 1
s = sqrt(snr(m)).*randn(1
相关资源
- Pattern Recognition and Machine Learning(高清
- MATLAB 编程 第二版 Stephen J. Chapman 著
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- HDB3码、AMI码的MATLAB实现
- 3点GPS定位MATLAB仿真
- MATLAB数字信号处理85个实用案例精讲入
- matlab从入门到精通pdf94795
- 欧拉放大论文及matlab代码
- 跳一跳辅助_matlab版本
- 全面详解LTE MATLAB建模、仿真与实现
- MIMO-OFDM无线通信技术及MATLAB实现_孙锴
- MATLAB Programming for Engineers 4th - Chapman
- matlab 各种谱分析对比
- 分数阶chen混沌matlab程序
- 蚁群算法论文+源代码
- 基于粒子群算法的非合作博弈的matl
- MATLAB车流仿真 包括跟驰、延误
- matlab空间桁架计算程序
- 基于MATLAB的图像特征点匹配和筛选
- DMA-TVP-FAVAR
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- newmark法源程序
- 传统关联成像、计算鬼成像matlab
- pri传统分选算法
- 摆动滚子推杆盘形凸轮设计
- 高斯正反算批量计算
- 医学图像重建作业matlab源码
- Matlab实现混沌系统的控制
评论
共有 条评论