资源简介
信号序贯检测matlab仿真代码,适用于信号检测,频谱感知等
代码片段和文件信息
%%%%%%%信号序贯检测过程
clc
clear all
pf = 0.1; %虚警概率
pm = 0.1; %漏检概率
pd = 0.9; %检测概率
Ns = 100; %信号序列长度
N=1:100;
g1=log(pd/pf);
g0=log(pm/(1-pf));
sum=0;
for j= 1:100
% v= 1:100;
b = sin(5*pi*j);
noise(j) = randn(1length(j))+b;%高斯噪声
sum=noise(j)+sum;
y=sum;
x(j)=log(y*N(j)-N(j)/2);
end
评论
共有 条评论